Forums › Forums › Slimbox2 plugin › Can you make WP-Slimbox2 load images faster?
- This topic has 5 replies, 2 voices, and was last updated 13 years, 3 months ago by malcalevak.
-
AuthorPosts
-
May 6, 2010 at 7:00 pm #1438AnonymousMember
Hello,
Is there a way to make WP-SLimbox2 somehow load the images faster? Wp-SLimbox2 is the only this type of plugin that works with my theme. If I remember correctly there was something like that, that if you have multiple images in a gallery and click the first one, the plugin will automatically start loading the other ones in the background so that browsing through images using previous and next buttons is faster. Is there something liek that possible in Wp-Slimbox2 or maybe is it already implemented and it’s the cause of my site/images?
http://dariuszczepiel.pl/portfolio is my website
May 6, 2010 at 8:30 pm #8541malcalevakModeratorDariusz,
It took me a second to realize that to get to a gallery I had to use the drop down menu at the top, once I got that I was able to look into things.
The pre-loading of the images is actually something that’s already built into the slimbox2 script, but I believeit’s only loading the next and previous images from the current one you’ve loaded, so as long as you aren’t clicking through them extremely fast they should come up pretty quickly.
If you want it to load more, that’s really something you’d need to talk over with the creator of Slimbox (I simply created an easy to use interface and implementation method for WordPress). You can find a link on the WP-Slimbox2 page[/url:2jyftper].
Another alternative would be to write your own javascript to start pre-loading every picture in the background, but it’s possible that would slow things down for people not starting near the front of the gallery.I did notice one problem on your site related to the plugin, which is actually my fault. Apparently some code I’d added in an effort to resolve issues with urls containing spaces didn’t account for the fact that image names might have spaces. This is causing images with spaces in their names to never load. When I get home from work I’ll look into a possible fix to resolve this, but in the short term, replace your slimbox2_autoload.js with the one I’ve attached.
July 9, 2011 at 6:59 pm #8542AnonymousMemberThanks, I was having the problem with spaces in the image names. Do you think that you could put that fix into the most current version? Thanks.
July 9, 2011 at 9:44 pm #8543malcalevakModeratorThe next release will include this fix. I’m hoping to put it out soon.
August 25, 2011 at 3:37 pm #8544AnonymousMemberI too am having the problem with spaces in the image names. I realize the new version with the fix is pending, but of course my client wants it fixed N-O-W. As an interim, can you indicate what code to change in your plugin that will compensate for the spaces? I’ve searched around and looks like it has something to do with the encodeURI() function, just don’t know where to apply it. Thanks! ” title=”Cool” />
August 25, 2011 at 4:06 pm #8545malcalevakModeratorI believe you just need to delete any instance of encodeURI, you can leave or remove the parenthesis as well, but it’s crucial that you leave the contents within them untouched.
You should also be able to pull down the latest dev code from the wordpress plugins page. -
AuthorPosts
- You must be logged in to reply to this topic.