Riparian Posted February 18, 2013 Share Posted February 18, 2013 Hi. I am after some advice please. A number of times I have tried different slideshow javascripts from the web to change the main image on my site. They all require considerable load times. I was considering a simple reload of the page after 3 seconds and each time a new image (one of say... 3 images at 65kb each) would show Does anyone see a downside in this method ? Cheers Quote Link to comment https://forums.phpfreaks.com/topic/274618-help-with-reload-vs-javascript/ Share on other sites More sharing options...
KevinM1 Posted February 18, 2013 Share Posted February 18, 2013 Hi. I am after some advice please. A number of times I have tried different slideshow javascripts from the web to change the main image on my site. They all require considerable load times. I was considering a simple reload of the page after 3 seconds and each time a new image (one of say... 3 images at 65kb each) would show Does anyone see a downside in this method ? Cheers Yeah. The downside is refreshing the entire page when all you want is a slide show. Where did you find your slide show scripts? Most modern scripts are fast. Also, have you optimized your images? Do they need to be 65kb each? Quote Link to comment https://forums.phpfreaks.com/topic/274618-help-with-reload-vs-javascript/#findComment-1413099 Share on other sites More sharing options...
Riparian Posted February 19, 2013 Author Share Posted February 19, 2013 Thanks for the reply Kevin Recent ones are responsiveslides and nivo slider and although they are good they still need up to 91 kb and 30kb of js scripts to run them. Not huge but I think the front page speed is escential. I dont know whether the sides themselves add to this but I would guess so, so 3x60kb 180kb +120kb and it is getting up there. My images are reduced to the max but unfortunatly they are necessary for the site (ausspecs com au) If you know a better way I would be most greatful. Cheers Quote Link to comment https://forums.phpfreaks.com/topic/274618-help-with-reload-vs-javascript/#findComment-1413289 Share on other sites More sharing options...
KevinM1 Posted February 19, 2013 Share Posted February 19, 2013 Unless you're experiencing lag, or you're really concerned about mobile devices, I wouldn't sweat it. Just try to keep the number of hits to the server to a minimum. I'm not an expert in mobile development (just getting into it myself), but there are techniques that can help. For example, only showing one image if the display area is a certain size, and injecting the slide show code and dynamically loading the other images if it's above that. This book (http://www.abookapar...sive-web-design) goes into it in detail. Quote Link to comment https://forums.phpfreaks.com/topic/274618-help-with-reload-vs-javascript/#findComment-1413358 Share on other sites More sharing options...
Riparian Posted February 24, 2013 Author Share Posted February 24, 2013 For anyone interested I have found a fantastically simple and effective banner rotater. It uses a whole 3Kb and took all of two minutes to get running. http://simplythebest.net/scripts/DHTML_scripts/javascripts/javascript_131.html Cheers Quote Link to comment https://forums.phpfreaks.com/topic/274618-help-with-reload-vs-javascript/#findComment-1414530 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.