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

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -