In the Best Practices to improve web site Performance http://developer.yahoo.com/performance/rules.html, Steve Souders mentioned one rule "Move Scripts to the Bottom". It's a little confusing. Actually, I notice that a lot of web pages that doesn't put script at bottom, while YSlow still mark A for these pages.
So, when should I follow...
I am developing a small intranet based web application. I have YSlow installed and it suggests I do several things but they don't seem relevant for me.
e.g I do not need a CDN.
My application is slow so I want to reduce the bandwidth of requests.
What rules of YSlow should I adhere to?
Are there alternative tools for smaller sites?
Wh...
Hi, trying to add an ExpiresDefault ExpiresByType to content on my website so that way it is cached. I use cachebusting in the URL (a revision number in the path) for Javascript, CSS, and images so that way I can set it to forever for these mimetypes. I have the following rules set up in apache httpd:
ExpiresActive On
ExpiresDefault...
I am using Tomcat to compress my HTML content like this:
<Connector port="8080" maxHttpHeaderSize="8192"
maxProcessors="150" maxThreads="150" minSpareThreads="25"
maxSpareThreads="75" enableLookups="false" redirectPort="8443"
acceptCount="150" connectionTimeout="20000" disableUploadTimeout="true"
compression="on" compressionMinSize="128...
Hi.. my site is all happily Gzipped according to:
http://www.gidnetwork.com/tools/gzip-test.php
However when I run it through Yslow I get a F for Gzip and it lists all of my scripts as components that are not gzipped.
Any ideas ?
...
YSlow says that images referenced from my CSS file (background image, for example) are not GZipped. I have static and dynamic compression turned on for my website in IIS7... so they should be compressed.
Is this a bug with YSlow or do image requests from CSS files ignore the compression header?
Is there a way to get these images GZipp...
Hi
How can you preload an entire web page using JavaScript so that I can get that page cached in the users browser?
I know how to preload images with JS but what I would like to do is preload the entire page.
Use case: On my website, I have a google maps page with a lot of other content (images, css, JS) and it takes a long time (abou...
Hey all,
I'm using mod_deflate on Apache 2.2 and the compression level is set to 9. I've fine tuned every possible aspects of the site based on the recommendations of YSlow (v2) and have managed to get an overall A grade (Total Score: 91) as well as on all categories except for:
Make fewer HTTP requests (Grade C -
I'm still workin...
hi
I have multiple themes on my website and users can just switch between multiple themes by clicking on a javascript link. I have 5 CSS files to handle the layout of all of the themes.
1 is for structure, 3 are for colors etc for different themes, and 1 common for some other stuff.
my css filenames read like this ..
main.css, red.cs...
On a few occasions now when I've moved from development to staging, I've been bitten by how JavaScript and stylesheets change their behaviour when rolled up into a single file.
For example, I'm trying to keep the series of stylesheets modular and small for maintainability, like so:
<%= stylesheet_link_tag "reset-fonts-grid.css", "typ...
So I've just downloaded yslow for firebug and have taken a look at the results for a site I am building.
I'm seeing recommendations, for example, to use ETags, cookie-free domain for my static components, and add expires headers.
I'm thinking, well I could go off and fix these but there's more likely a bunch of other optimizations I co...
Today I have checked performance statistics of my website using YSlow. I got a warning (or error may be) which is as below
Add Expires headers
There are 15 static components without a far-future expiration date.
* (no expires) http://www.example.com/video/css/global.css
* (no expires) http://www.example.com/video/js/global.js
...
Hi
On my web site, I have the following code:
<input type="image" src="images/btn.png" alt="Submit" border="0" height="25" width="102" />
When I run my web site through one of the many HTML validators, they prompt to inform me that:
border
height
width
are invalid attributes of the INPUT element.
However, YSlow and Google PageSp...
Yslow is currently giving Grade B for my site and also for "Add Expires Headers".
It says:
There is 1 static component without a far-future expiration date.
* (no expires) http://localhost/images/favicon.ico
The current Expires code in my apache.conf is like this:
ExpiresActive On # enable expirations
# expire after a wee...
I am attempting to use the far future expires method to cut down my site's load time.
However when I access static files in firefox, the server still responds with HTTP/1.x 304 NOT MODIFIED. The request shouldn't even be made if the files are cached right?
Here are the relevant httpd.conf lines I have for apache 2.2:
LoadModule expir...
One of YSlow's measurables is to use cookie-free domains to serve static files.
"When the browser requests a static
image and sends cookies with the
request, the server ignores the
cookies. These cookies are unnecessary
network traffic. To workaround this
problem, make sure that static
components are requested with
cook...
i have content length available in the beginning of the download. so i know how much bytes i need to request for.
i download in chunks of 1024 bytes. in the last chunk i request for the number of bytes remaining. i am using the read function.
but the last chunk takes a lot of time to arrive. is it normal?
...
I'm trying to enable Expires headers for images as recommended by YSlow. I'm sure I had this working before but now when I check YSlow it says they are not being cached.
For my .htaccess, I have tried:
ExpiresActive on
ExpiresDefault A0
<FilesMatch "\.(gif|ico|jpg|png)$">
ExpiresDefault A29030400
Header append Cache-Control "p...
As I'm starting to do some front end engineering at work, I would like to properly quantify the speedup achieved.
I would like to be able to use an average value of, say, 50 page load times measured by YSlow or Google Page Speed. Obviously, I don't want to hit reload 50 times and write down the value.
Is there a FF plugin for that or...
Hi,
I have started a small django application in my machine. When i have seen the request logs I figured out that It is actually logging the same requests twice.
After a little investigation, I disabled all of my add-ons in my browser and tried. To my surprise i din't see duplicate requests in logs After that.
After some trials I foun...