Preloading Images with Jquery

There are times when preloading images is an important step in keeping your site/page/program running smoothly. This is especially true in the era of mobile.

Here’s a cute little snippet that does just that.

function preload(yourarrayOfImages) {
    $(yourarrayOfImages).each(function(){
        $('<img/>')[0].src = this;
    });
}

preload([
    'img/image1.jpg',
    'img/image2.jpg',
    'img/image3.jpg'
]);

 

More Web Design Blog Content

Livewire SEO

The most common question we receive following a website launch is, “How can I increase traffic to my website without spending a fortune or buying ads?” Every website we develop for a customer includes what we refer to as “Basic SEO”; this simply means that we will fill

Programming code on a computer screen

Simplifying JavaScript Development with Essential Tools

JavaScript is an incredibly powerful language that drives the dynamic and interactive elements of web applications. However, it can also be complex and challenging to work with, especially as projects grow in size and scope. Fortunately, there are a number of tools available that can streamline the development

Preloading Images with Jquery

There are times when preloading images is an important step in keeping your site/page/program running smoothly. This is especially true in the era of mobile. Here’s a cute little snippet that does just that. function preload(yourarrayOfImages) { $(yourarrayOfImages).each(function(){ $(‘<img/>’)[0].src = this; }); } preload([ ‘img/image1.jpg’, ‘img/image2.jpg’, ‘img/image3.jpg’ ]);

What the Heck! The Boutique Guide?!

Yes, it’s the roll out of our newest fandangled BOUTIQUE GUIDE! This is a really, truly excellent experiment in cooperative advertising. We’ve built The Boutique Guide to get small boutiques – generally just a one or two person operation – a leg up on their (lass capitally challenged)

New Web Program: Brain Development Maps

Creating braindevelopmentmaps.org was a great opportunity to work on a very interesting site; Shirley came to Livewire with very specific needs. There is nothing ‘typical’ or ‘standard’ about this website, it is in a word, unique. Braindevelopmentmaps.org allows users to view highly detailed brain mapped images online. These

Google Local

In today’s digital world, it is essential for businesses to have an online presence. Google Maps is one of the most significant tools for local companies, since it helps potential customers locate and learn about your business. Having a presence on Google Maps is not sufficient; you must