#basket
New messages Members Forum rules Search RSS
  • Page 1 of 1
  • 1
Forum » For webmasters » HTML / CSS / Javascript » Preload Your Site
Preload Your Site
SirDarknight(Tonmoy)Date: Friday, 06.05.2011, 11:56 | Message # 1
Group: Verified
Posts: 167
Awards: 6
Status: Offline
Implementation:

To implement this script you don’t need any Javascript experience. Just follow these easy steps:

1. Download the zipped archive.

2. Upload the contents to your webserver.

3. Place the following code in the part of your page:

Code
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js'></script>
<link rel="stylesheet" href="css/queryLoader.css" type="text/css" />
<script type='text/javascript' src='js/queryLoader.js'></script>

Remove the jQuery part if you have already included the file.

4. Place this code at the bottom of your page:

Code
<script type='text/javascript'>
  QueryLoader.init();
</script>

You are now done!
Customization:

If you only want one element / container to be preloaded you can setup a jQuery selector to only preload what you want.

Let’s say you have an element with an id. You only want the images inside that element to be preloaded. You can use the following code:

Code
<script type='text/javascript'>
  QueryLoader.selectorPreload = "#idOfTheElement";
  QueryLoader.init();
</script>


Please Give Me A Reputation or Award If My Post Helps You
 
SezyDate: Monday, 27.06.2011, 05:38 | Message # 2
Group: Verified
Posts: 8
Awards: 1
Status: Offline
Quote (SirDarknight(Tonmoy))
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js'></script>

There's no need to load jquery from google - jquery is loaded automatically on every ucoz website, unless you use hacks to disable it
 
BlazerDate: Friday, 01.07.2011, 19:20 | Message # 3
Group: Users
Posts: 1
Awards: 0
Status: Offline
The Zip archive is removed from depositfiles....
 
SirDarknight(Tonmoy)Date: Friday, 01.07.2011, 20:04 | Message # 4
Group: Verified
Posts: 167
Awards: 6
Status: Offline
Where's The problem? I can see it there

Please Give Me A Reputation or Award If My Post Helps You
 
DannyDate: Monday, 18.06.2012, 22:28 | Message # 5
Group: Users
Posts: 5
Awards: 0
Status: Offline
Quote (depositfiles)
This file does not exist, the access to the following file is limited or it has been removed due to infringement of copyright.

reupload it please sad


HD Wallpapers

Message edited by Danny - Monday, 18.06.2012, 22:29
 
UndisPutedDate: Tuesday, 19.06.2012, 00:41 | Message # 6
Group: Verified
Posts: 245
Awards: 4
Status: Offline
Danny, Try this link

http://jqueryui.com/download


 
DannyDate: Tuesday, 19.06.2012, 01:00 | Message # 7
Group: Users
Posts: 5
Awards: 0
Status: Offline
UndisPuted, thank you happy

HD Wallpapers
 
Forum » For webmasters » HTML / CSS / Javascript » Preload Your Site
  • Page 1 of 1
  • 1
Search: