davej Posted June 15, 2013 Share Posted June 15, 2013 I have been toying with this page but I'm not sure if it is working yet... http://www.stlcanoekayak.com/images/saint_june8_2013/default.html I never see a non-zero load time. It is listed above the image in the slideshow. It does not yet have any css to specifically support mobile devices. Link to comment Share on other sites More sharing options...
thescientist Posted June 15, 2013 Share Posted June 15, 2013 I'm actually not sure what you are asking for. What is happening vs. what you expect to happen? Is this a question about optimization or implementation? Link to comment Share on other sites More sharing options...
davej Posted June 15, 2013 Author Share Posted June 15, 2013 (edited) I'm actually not sure what you are asking for. What is happening vs. what you expect to happen? Is this a question about optimization or implementation? Yes, why isn't it working? My ping average is 33 milliseconds so I should not see an image load time of 0ms. Edited June 15, 2013 by davej Link to comment Share on other sites More sharing options...
jeffman Posted June 15, 2013 Share Posted June 15, 2013 Any image in your cache will load with almost zero latency. Since your thumbnails ARE the images, even if you clear your cache, loading the thumbnail page will load all those images into cache again. I see no way of getting a load time in your slideshow without manually clearing your cache and programmatically going around the load-thumbnails stage. Link to comment Share on other sites More sharing options...
davej Posted June 15, 2013 Author Share Posted June 15, 2013 (edited) Any image in your cache will load with almost zero latency. Since your thumbnails ARE the images, even if you clear your cache, loading the thumbnail page will load all those images into cache again. I see no way of getting a load time in your slideshow without manually clearing your cache and programmatically going around the load-thumbnails stage. I've cleared my cache and the thumbnails are now from a folder of thumb images. For this page the total of all the thumbs is about 2MB for the initial page load while each slideshow image is about 140KB. Edited June 15, 2013 by davej Link to comment Share on other sites More sharing options...
jeffman Posted June 15, 2013 Share Posted June 15, 2013 It looks like you tried some debugging in your gettime function. Try expanding that with this: title.innerHTML = time0 + ", " + time1; just to see what those values really are. Link to comment Share on other sites More sharing options...
davej Posted June 15, 2013 Author Share Posted June 15, 2013 (edited) So I must create a new date object every time I want to record the timer value. That was my problem. Thanks. Edited June 15, 2013 by davej Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now