Jquery animate becomes jerky when added piece of javascript -
my animation becomes jerky , slow when add piece of javascript:
window.location.hash = image.attr("data-imgnum"); is normal? there jquery alternative maybe works faster , doesn't slow down everything?
this full code: http://jsfiddle.net/jqalb/7/
but since on jsfiddle hash thing doesn't work animation works fine...
first of check if there element id same data-imgnum attribute. if there is, browser default behavior on hashchange event jump element id specified hash part of url, can affect scrolling animations (or others depending on scrolltop param).
if doesn't help, check if website has somehow implemented hashchange event, , check code behind it.
question specific if add more details whole environment.
Comments
Post a Comment