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

Gainesville Web Development

What a market. Gainesville has it all, especially its share of web developers. With new blood coming into the market – funnelled into and out of Gainesville via the University – our little town has an abundance of web developers looking to make a name for themselves. And we wish

JW Freeman Plumbing Has A New Website

JW Freeman plumbing is a new client with lots of potential. He needs something that will put him on top and Livewire is that something. We have tons of experience and dozens of happy clients that proves we have the formula for success. We don’t keep it a

New Projects

We’re excited to have new projects coming in on a regular basis. On the menu for the next few weeks are some great opportunities to expand our portfolio and our reach. Lake Butler is electing a new Sheriff soon and we’ll be creating one of the candidate’s websites.

The Best of HTML 5

Thank Goodness HTML 5 is finally here and it’s everything we expected it to be and more! Out of the many new features with the code standards comes with it many new and exiting programs to facilitate the production of HTML 5 websites. One great new tool is

TradePMR has a new website

A really great client – TradePMR – just launched their new super awesome, totally spectacular, mobile responsive website! We worked with their staff for the last 8 weeks to put together an entirely new online experience for their customers. Livewire will be conducting conversion optimization audits over the

Gainesville Website Design: Mobile Websites

Mobile sites are a great way to tap into a new resource for many businesses. More and more people are using their phones as their primary device for Internet access. Phones are more computers than they are phones these days. A mobile website is a lightweight version of