File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -24,15 +24,19 @@ the source of the image.
2424
2525CODE HERE
2626
27- img = new Image
28- img.src = 'image/source.png'
27+ {% highlight javascript %}
28+ img = new Image;
29+ img.src = 'image/source.png';
30+ {% endhighlight %}
2931
3032And placing this inline at the top of the html page before any calls to the JS or CSS, GETs
3133image before anything else. For more bonus points in quick loading don't use any jQuery, just
3234straight JS and it will shave a few milliseconds. And for even more make a low res picture and
3335overlap the images using the CSS background comma spearated.
3436
37+ {% highlight css %}
3538background-image: url(low-res.png), url(high-res.png);
39+ {% endhighlight %}
3640
3741This will basically load the first image on the list and once the next image is complete it will
3842overlap it in a sudden blink. The effect is pretty suddle if you aren't looking for it.
You can’t perform that action at this time.
0 commit comments