By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,045 Members | 1,389 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,045 IT Pros & Developers. It's quick & easy.

How to force browser load images last thing?

mardash
P: 10
I asked if I can make all images of my web "img objects"
load last thing?

I want the webpage to load the text first and then start to load the images.
Apr 11 '12 #1
Share this Question
Share on Google+
5 Replies


Rabbit
Expert Mod 10K+
P: 12,430
I suppose you could use javascript to put in all the image sources in the On Load event but why would you want to do that?
Apr 11 '12 #2

mardash
P: 10
image make web load slower .. i need text load first ..
Apr 11 '12 #3

Rabbit
Expert Mod 10K+
P: 12,430
Just because you delay it to the end doesn't mean it's any faster.
Apr 11 '12 #4

Dormilich
Expert Mod 5K+
P: 8,639
make a different (sub)domain for the images, so they could be loaded parallel to the text. though text is usually loading nearly instantly.
Apr 12 '12 #5

100+
P: 1,059
I have read a tutorial long time ago in my Mastering in Javascript book about this.

as Rabbit says
you can create a javascript array of image path. at the beginning you can set all image path with a light weight small picture and then in a delay you can assign the string path to the image source one by one
Apr 12 '12 #6

Post your reply

Sign in to post your reply or Sign up for a free account.