View Full Version : Links inactive until complete page load
05-19-2009, 05:22 PM
What's the trick?
05-20-2009, 01:06 AM
Adsense code links to google so you will have to wait for that too load. People use many things to optimise their sites, such as includes and external scripts, small script size etc. It will take some studying if you want to know all the tricks. For a particular site, you need to post the link so I can see what they are doing.
05-20-2009, 04:11 AM
I'm having the biggest problem with my site's forums. There are a lot of them.
Go to www(dot)realworldautomotive(dot)com(forward slash)forums(forward slash)index(dot)com and refresh a few times. See how none of the forum links become active until the top two banners open up. If I use Adsense Ads in the same spots, it's much worse. Those ads are at the end of the body and positioned absolute up top.
I've been working on page load for a while:
- Compressed all .js and .css with a YUI Compressor
- I have this in .htaccess to compress and speed up on my Apache server:
# BEGIN Compress text files
# END Compress text files
# BEGIN Expire headers
ExpiresDefault "access plus 1 seconds"
ExpiresByType image/x-icon "access plus 2592000 seconds"
ExpiresByType image/jpeg "access plus 2592000 seconds"
ExpiresByType image/png "access plus 2592000 seconds"
ExpiresByType image/gif "access plus 2592000 seconds"
ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
ExpiresByType text/css "access plus 604800 seconds"
ExpiresByType text/html "access plus 600 seconds"
ExpiresByType application/xhtml+xml "access plus 600 seconds"
# END Expire headers
# BEGIN Cache-Control Headers
Header set Cache-Control "max-age=2592000, public"
Header set Cache-Control "max-age=604800, public"
Header set Cache-Control "max-age=216000, private"
Header set Cache-Control "max-age=600, private, must-revalidate"
# END Cache-Control Headers
# BEGIN Turn ETags Off
Header unset ETag
# END Turn ETags Off
# BEGIN Remove Last-Modified Header
Header unset Last-Modified
# END Remove Last-Modified Header
- Doing my best to use as few .js and .css links as possible
- Optimize and give height and width attributes to all images
My home page is actually larger than the forums, but opens faster. I'm using as little Adsense as possible on the forums. It's seems like I'm right at the borderline where one more Ad slows it down to much.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.