javascript - Scroll becomes slow when page becomes huge -


i have infinite scroll on website. after while, when page keeps loading things , becomes huge(height > 50000px) scroll becomes extremely laggy , slow. page consists of images , videos(html5 , youtube videos in iframes).

the jquery overall remains fast jquery slide events becomes slow.

what can make faster? specially scroll.

this article handling ngrepeat directive in angularjs tackle "similar" problem. (not same thing @ all)

but!, question believe you're doing wrong. should paginate or else. users won't loose content. in "database", right? right?

it seems you're looking solution isn't real problem. please reconsider. reevaluate circumstances. study other solutions , approaches. go else.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -