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

Date for our next Seminar is 4/8

Livewire Seminars are the perfect way to collect everything you need to know to do your own website optimization. We have what it takes to put your site on page 1 and we’ll teach you all of the not-so-secret info. Where to go, what to do, and how

No Business is too Small for Mobile

No matter how small your business is, you need to be on mobile. There are more mobile users these days than traditional desktop/laptop users, so the benefit is apparent. If your website is not mobile ready, you are at a distinct disadvantage. First, the user will probably have

Linking Your G+ Page To Your Website

We always get asked: Does anyone use G+? Yes. Is it worth it? Again, Yes. Using Google’s products would obviously help your standing with their search algorithm. We don’t know this to be technically true but it certainly seems so in our experience. The more you use and

Garry Seay has a New Website

Garry is running for Sheriff in Union county Florida. We wish him the best of luck and he has a great new website to show off. His campaigners came to me after locating Livewire on Google. We met and discussed their needs. They needed something up and running

How important is color in web design?

Color is an extremely important aspect of web design. It can have a significant impact on the user’s perception of a website, its brand identity, and the overall user experience. Here are some reasons why color is important in web design: Branding: Colors can be used to create

TOP 3 PROJECT MANAGEMENT TOOLS AND WHY THEY ARE SO IMPORTANT

Whether you are a Freelancer or a small business owner, you know the importance of an accurate project management, here are 3 of the best project management tools that can help you achieve your goals. 1.- Teamwork Projects Teamwork Projects is a cloud-based project management solution it allows you