javascript - How to get images to load faster in HTML5 mobile app? -
in html5 mobile app, retrieving 10 images @ time imgur (the user clicks button more images). when images retrieved, apply formatting via css (mostly height , width fits dimensions of iphone).
my guess 1 of reasons why it’s taking long because i’m applying formatting images once they’re retrieved , showing these images. better off saving images in state should displayed right dimensions don’t have apply css them? in getting images load faster?
thanks!
according this post, should grabbing 6 @ time.
also, open browser's debugger, go netowrk tab , watch how long things taking.
Comments
Post a Comment