javascript - Lazyload images and anchors -
i have webpage waits images loaded until visible in viewport of browser (lazyload). dimensions of images unknown. on top of webpage have link jumps anchor on bottom of page. when user presses link browsers scrolls wrong position of webpage. assume because images loaded in browser , changes height of page. in other words position of anchor changes after link link clicked. there anyway solve paradox.
what do, append link , div after images loaded.
for example: if images loaded, could:
$("#somediv").append("<a href='#someotherdiv'></a>"); $("#somedivatthebottomofthepage").append("<div id='#jumptothis'></div>");
Comments
Post a Comment