Pre-Load Image Links

By JoeSimmons Last update Jun 4, 2009 — Installed 2,393 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 13 posts, 5 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
JoeSimmons Script's Author

You're welcome bro. And yeah, it wont overload servers because you're going to click on the picture links and load them anyway. Plus, once they're loaded, they wont need to load again if you have a big cache enabled so it's not flooding the servers.

 
Mark2007 User

Well, I'll be darn Joe! You did it! I used an adult website (that I won't name) that had a page of small thumbnails that when clicked would load the large size of that picture. It works! Now I don't need Fasterfox unless it's for the page load timer... and, people worry so much (I don't) about Fasterfox overloading servers etc, etc.. With your nifty script I can specify just the few galleries I'm interested in pre-loading and not pre-load everything (unless I want to). Way to go and again thank you so much for this script. I think a lot of people will be interested in this new feature.

 
JoeSimmons Script's Author

Mark2007, the script should now pre-load images that are linked to on the page also. You can test it if you want. Tell me if it works or not. If not, please tell me what the url is on the gallery you're viewing.

 
Mark2007 User

Thank you Sir, I appreciate that.

 
JoeSimmons Script's Author

It should work for photo galleries (depending if the thumbnail is just a sized down version of where the link brings you.
I know what you mean though. I should pre-load links to images on the page too. I'll work on that script.
In the meantime Mark2007, I hacked the Fasterfox compatibility so you can run it on FF3. The download link is here. Download it, open it with Firefox, and install.

 
Mark2007 User

I would love to have something like this to pre-load images from photo gallery pages of thumbnails so they "jump" on the screen when the thumbnail is clicked because they are being pulled from my Firefox cache. I miss not being able to use Fasterfox (in FF3.0.3) just for that feature and the page load timer. With a GM script I could be selective about which sites (gallery Image sites) to run it, but it's not doing that for me. Perhaps I'm missing something? Should it work with thumbnail gallery sites? Also..., thank you for all the scripts you have written!

 
JoeSimmons Script's Author

I don't want to re-download though, I just want them to download asap.

 
Avindra V.G. Scriptwright

(I think) that a) because document.images would be better because all the images are loaded there anyway. and b) (im guessing) that appending the source location will force it to redownload, and a pound (#) "negates" anything to the right

 
JoeSimmons Script's Author

Why document.images[i].src+="#load"?

 
Avindra V.G. Scriptwright

how about:

for(var i=0;i<document.images.length;i++) document.images[i].src+="#load"

?

 
JoeSimmons Script's Author

No, Greasemonkey scripts start before the page is loaded, hence why some people add onLoad listeners to their scripts.

 
easier_rhino Scriptwright

Just curious; does it even work? Because usually when I have a Greasemonkey script active, it only begins working after the page has already loaded. I mean, it's a decent idea, I just don't see that it would ever make things faster. Now you could write a script which would preload all the linked images and let them load more quickly when you clicked on the link, and I could see that working, although on an image-link-intensive page, it would be slow.