<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1016798" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1016798</link>
    <description></description>
    <language>en</language>
          <item>
    <title>the main difference is function</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/preload-images#comment-1098304</link>
    <description> &lt;p&gt;Having the function for the images with the array in the head of the page (especially as a global .js file) increases the functionality of the site. You can have a lot more control than having in inline (in the body element).&lt;/p&gt;
&lt;p&gt;It also decreases load time having it in the head element as a global .js file if you need the images on multiple pages of a site.&lt;/p&gt;
&lt;p&gt;Suzanne&lt;/p&gt;
 </description>
     <pubDate>Tue, 15 Jan 2002 05:21:44 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1098304 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/preload-images#comment-1098296</link>
    <description> &lt;p&gt;Is there any difference in using a preload script like mentioned above to a onload preload script in the body tag ?&lt;/p&gt;
 </description>
     <pubDate>Tue, 15 Jan 2002 04:33:27 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1098296 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/preload-images#comment-1098173</link>
    <description> &lt;p&gt;the 1x1 trick is a bad one and shouldnt be used, what happens is the whole image loads and actually slows your loading time down as it may load them first, so the page loading them will appear dead (nothing there) or give the wrong impression that your whole site is very slow loading  and it doesnt just load 1x1 pixels of it, it loads the whole thing.&lt;/p&gt;
&lt;p&gt;bottom line, this method actually works against the thing your trying to do, which is speeding load times.&lt;/p&gt;
&lt;p&gt;best bet, preload and/or thumbnails as Suzanne has mentioned, and/or compress your graphics, limit use of javascript and other fancy stuff.&lt;/p&gt;
&lt;p&gt;being sneaky will work against you, visitos dont like suprises (if you are)&lt;/p&gt;
 </description>
     <pubDate>Sun, 13 Jan 2002 06:38:49 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1098173 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/preload-images#comment-1098167</link>
    <description> &lt;p&gt;What if the person doesn&#039;t want to view that page that the big image will be on? Then they have downloaded the image for nothing.&lt;/p&gt;
&lt;p&gt;What are you trying to do? Sure you can hide things, but it&#039;s not good practice. If you want to show an image, such as a larger photo, use thumbnails. When people CHOOSE to view larger images, they are willing to wait. &lt;/p&gt;
&lt;p&gt;Instead of casting about trying to be sneaky, why not tell us what your goal is, perhaps there is a solution out there that will solve your problems.&lt;/p&gt;
&lt;p&gt;Suzanne&lt;/p&gt;
 </description>
     <pubDate>Sun, 13 Jan 2002 04:50:13 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1098167 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/preload-images#comment-1098157</link>
    <description> &lt;p&gt;What if I put on the page leading to the image loading slower&lt;br /&gt;
&lt;img src=&quot;imagename.gif&quot; border=&quot;0&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;&lt;br /&gt;
does this load the image into the browsers cache before they arrive on that page, speeding up the load time by a huge amount? does it work?&lt;/p&gt;
 </description>
     <pubDate>Sun, 13 Jan 2002 01:24:18 +0000</pubDate>
 <dc:creator>ardaee</dc:creator>
 <guid isPermaLink="false">comment 1098157 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/preload-images#comment-1097682</link>
    <description> &lt;p&gt;At the risk of spelling it out too clearly, you would make one of each of those lines for each picture...&lt;/p&gt;
&lt;p&gt;It&#039;s called an array. &lt;/p&gt;
&lt;p&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;br /&gt;
if document.images {&lt;br /&gt;
nameImg0 = new Image&lt;br /&gt;
nameImg1 = new Image&lt;br /&gt;
nameImg2 = new Image&lt;br /&gt;
nameImg3 = new Image&lt;br /&gt;
nameImg4 = new Image&lt;br /&gt;
nameImg5 = new Image&lt;/p&gt;
&lt;p&gt;nameImg0.src = &quot;image0_location.jpg&quot;&lt;br /&gt;
nameImg1.src = &quot;image1_location.jpg&quot;&lt;br /&gt;
nameImg2.src = &quot;image2_location.jpg&quot;&lt;br /&gt;
nameImg3.src = &quot;image3_location.jpg&quot;&lt;br /&gt;
nameImg4.src = &quot;image4_location.jpg&quot;&lt;br /&gt;
nameImg5.src = &quot;image5_location.jpg&quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;/p&gt;
&lt;p&gt;... et cetera. I recommend you wander over to &lt;a href=&quot;http://www.javascriptworld.com&quot; class=&quot;bb-url&quot;&gt;javascriptworld.com&lt;/a&gt; and buy yourself Dori&#039;s book on JavaScript for the WWW -- cheap and it will explain all this sort of thing for you.&lt;/p&gt;
&lt;p&gt;Suzanne&lt;/p&gt;
 </description>
     <pubDate>Sun, 06 Jan 2002 17:38:27 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1097682 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/preload-images#comment-1097674</link>
    <description> &lt;p&gt;It is ok but I think that script is for an individual one I mean just for a picture isn&#039;t it suzanne?&lt;/p&gt;
 </description>
     <pubDate>Sun, 06 Jan 2002 11:10:18 +0000</pubDate>
 <dc:creator>ardaee</dc:creator>
 <guid isPermaLink="false">comment 1097674 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/preload-images#comment-1097653</link>
    <description> &lt;p&gt;put them in an array in the  element.&lt;/p&gt;
&lt;p&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;if document.images {&lt;/p&gt;
&lt;p&gt;nameImg = new Image&lt;/p&gt;
&lt;p&gt;nameImg.src = &quot;image_location.jpg&quot;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;lt;/script&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt; Suzanne&lt;/p&gt;
 </description>
     <pubDate>Sun, 06 Jan 2002 00:30:14 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1097653 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
