2 posts
  • Has been part of the Envato Community for over 5 years
  • Has collected 10+ items on Envato Market
pschutter says

I’ve been designing websites for customers for the past year. I’ve noticed that few of the sites I’ve created have background images that are over a 1meg in size and when loading takes a considerable amount of time to load. I’ve tried Javascript which helps, but I would love to have a cool preloader to do this instead of watching teh HTML page slowly load.

Can someone please help me on how I can have a preloader once complete launch the first page of my site or something like this….

Thanks

Patrick

8248 posts Community Moderator
  • Has referred 10+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Attended one of our Meetups around the world
+9 more
MSFX Volunteer moderator says

why not save your images for web so they’re smaller?

for js preloaders you’d be better asking at codecanyon…

2197 posts
  • Has sold $10,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Helped several times protecting Envato Market against copyright violations
  • Sells items exclusively on Envato Market
+4 more
Nitro_Themes says

Hi there

There is a jquery loader that you can use that preloads.

It would be the queryLoader.js and you would have to include it in to your html like so

<script src="scripts/queryLoader.js" type="text/javascript">

then add this under to your included js files to initialize the loader.

<script type='text/javascript'>
    $(function(){
        QueryLoader.init();
    });
    </script>

Also the loader comes with a css file that styles the loader line, size and background color that you would also have to include where you have included your other style sheets like so.

<link href="css/queryLoader.css" rel="stylesheet" type="text/css" />

That should be it, you can find the loader at http://jquery.com/

cheers

Lester

2 posts
  • Has been part of the Envato Community for over 5 years
  • Has collected 10+ items on Envato Market
pschutter says

Thanks for the response…...

I will try jquery adn see if this helps…..

Patrick

3256 posts
  • Has referred 100+ members
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+9 more
ParkerAndKent says

1 MB bg image = a crazy way to waste the server bandwidth. 1000 page loads = 1GB!!!

by
by
by
by
by
by