is there a code that gives a certain image a priority over others when a page is loading?
i want a certain image to load first, for slower computers.
is there a code that gives a certain image a priority over others when a page is loading?
i want a certain image to load first, for slower computers.
My Web Site
Japan Town
You can preload images:Code:function preloadImages() { for(var i = 0; i < arguments.length; ++i) (preloadImages.store[preloadImages.store.length] = new Image()).src = arguments[i]; } preloadImages.store = []; preloadImages("importantImageOne.png", "importantImageTwo.jpg");
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Bookmarks