Go Back   Gaming Gutter > Non-Gaming > Programming > Tutorials


Tutorials - Looking for programming tutorials to increase your knowledge? Do so here.

» Site Navigation
» Home
» FAQ
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Advertisement
» Recent Threads
Go to first new post (B) Buying Pets with USD!
09-05-2008 06:05 PM
Last post by NextGenWarrior
Today 10:58 AM
6 Replies, 7 Views
Go to first new post Connor & Krorie...
Today 09:12 AM
by Connor
Last post by White B O I
Today 10:57 AM
1 Replies, 2 Views
Go to first new post Selling lab account with...
Yesterday 04:08 PM
by drdd10
Last post by drdd10
Today 10:56 AM
19 Replies, 20 Views
Go to first new post Selling Pet for USD; no...
Today 10:52 AM
Last post by JohnnyLoco
Today 10:55 AM
1 Replies, 2 Views
Go to first new post my gaia acc your neo acc
09-05-2008 07:40 PM
Last post by newbladers
Today 10:49 AM
2 Replies, 3 Views
Reply
 
LinkBack Thread Tools Display Modes

 A Guide To Prefetching [HTML]
Old 10-18-2006, 03:51 PM   #1 (permalink)
Oosband
Guest
 
Posts: n/a
iTrader: / %
A Guide To Prefetching [HTML]

Both Mozilla and FireFox have the ability to prefetch contect on a web page. This basicly means that while you're browsing, the browser is downloading other content in the background.

To tell your sites content to be prefeched you must tell your browser to do so. If you had a large header image on another page you wanted prefeched, just enter:
Code:
<link rel="prefetch" href="images/head.png">
Put that into the <head> section of your code. The browser will prefetch the image and save it into the cache.

If you also wanted your other page prefetched too, just copy this code under it:
Code:
<link rel="next" href="other.html">
It's a great way to make the end user think that your site is loading quickly, they click the link to the next page and it will load instantly from the cache.

Links with https wont be prefetched for security reasons and dynamicly generated pages with query strings in the url will also not be prefetched...they generally cant be cacheable so it makes pefect sense not to.

Watch out though...prefetching can cause havoc in your site backend. It will click every link on the page, no matter what it is...this may include buttons such as "Delete" or "Add", so you have been warned!

To completely turn off Prefetching, add this code to your .htaccess file:
Code:
RewriteEngine On
SetEnvIf X-moz prefetch HAS_X-moz
RewriteCond %{ENV:HAS_X-mox} prefetch
RewriteRule .* /prefetch-attempt [L]
Simple.

I hope you enjoyed this prefetching tutorial, it can do wonders with your site, but I'd also keep an eye out on bandwidth too...
  Reply With Quote
Reply

Bookmarks



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Short URL Script (PHP + HTML) Oosband Tutorials 6 11-17-2006 05:27 PM
Turn on HTML in SpamCity! Thy Gamer Website Suggestions 19 10-07-2006 11:07 AM

Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -7. The time now is 10:58 AM.


vBulletin skin developed by: eXtremepixels
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

Page generated in 0.10539794 seconds (100.00% PHP - 0% MySQL) with 20 queries