php - How to load a ton of images fast? -


my website hosts lot of product photos, on 1k. have next/previous page system want make them load in 1 go. 200 products 20 sub-products each loading when viewing site , images spin using caroufredsel. lazy loading completly crashes site/script. haven't tried scroll pagination yet think explode too. possible? thanks.

depending on site traffic using lot of bandwidth load these photos (which sure aware of) , sure customers want have products blasted in there face in 1 go?

you should make list of 2 hundred catagories loads dynamically. make ajax call php script(or whever ever language coding in) selects next 20 product catagories db every time user scrolls down x% of screen(depending on layout). below each catagory put hidden div opens out when user click on catagory , when open div event fired can start making ajax requests images sub catagories, load them carosel or wherever.

loading 1000 images of every product have 1 page seems insane , heavy! understand need think need consider how implement one


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -