blogspot stats

Saturday, June 5, 2010

Tips and Trciks for Improving Your Site’s Speed and Performance

Webmaster Turbo Kit: 50+ Tips and Resources to Improve Your Site’s Speed and Performance
By now, nearly everyone knows that you can’t have an effective site without speed. Web users have short attention spans and are generally not willing to wait for a bloated website to load. Take advantage of these tips, tools, and resources, and you’ll have a much better time capturing their attention.
Tips
Follow these tips to slim down and speed up your site.
  1. Remove anything that isn’t vitally important: Get rid of all of your “ego” elements that show off your design skills, and just keep the components that contribute to your site’s function.
  2. Cut down on HTTP requests: Reduce the time that users need to spend downloading components by cutting some out or combining them.
  3. Cut your page down: Keep your HTML and image size below 50kb for fast loading.
  4. Make use of thumbnails: Serve up images in a smaller size with thumbnails, which will allow the user to see a larger image if they’d like to.
  5. Spread your content around different locations: Use a content delivery network to cut down on response times due to a lack of close proximity to your web server.
  6. Remove comments from your HTML: HTML comments are useful, but if you’re going for speed they’re just not necessary.
  7. Reduce your images: Fewer images mean fewer HTTP requests, so use text instead of images whenever you can.
  8. Tell browsers how long your content can be cached: Use an Expires header to indicate that a specific component can be held in cache until a certain date, and repeat visitors will enjoy much faster load times.
  9. Compress your images: Always be sure to compress your images before saving, even images in Flash files.
  10. Compress components: Use the Gzip protocol to tell web servers to compress your site’s components for faster loading.
  11. Be careful with banner ads: Banner ads can add to your load time and cut down on the effectiveness of your site.
  12. Place stylesheets in your document HEAD: Put your stylesheets on top, and you’ll let your page render progressively, giving users visual feedback that the page is loading.
  13. Use CSS: If you’ve got your styles on an external .css file, they can be cached for faster loading.
  14. Move scripts to the bottom: With scripts, progressive rendering is blocked on all content below the script, so it’s best to leave them until the end so that all other page elements have a chance to load.
  15. Avoid nested or full page tables: Tables that are nested or take up a whole page will take longer for the browser to load while it works out the layout.
  16. Be careful with CSS expressions: If you use CSS expressions to dynamically set your properties, you may be asking browsers to evaluate expressions a number of times during any given browsing session. To cut down on this problem, you can either eliminate them, or just use one-time expressions.
  17. Choose the right image format: Use JPEGs for photographs and true-color, GIFs for flat-color images, and PNG when you need more color support than GIF.
  18. Fragment your pages: If you have a huge page full of content that could potentially be broken up, split them up into multiple short pages that will load faster.
  19. Move your JavaScript and CSS off-site: If you have your JavaScript and CSS inlined with your HTML, they’ll be downloaded every time a browser requests the HTML document, but if they come from outside, they’ll be cached, and thus load faster.
  20. Put a slash at the end of your links: Make it easy for the server to figure out that it’s loading a directory page, and it will load faster.
  21. Clean up your code: When using WYSIWYG editors, you’ll often find that it adds useless code, like empty tags. Get these out of your code, and you’ll move along faster.
  22. Cut down on DNS lookups: Every unique hostname on your page requires a DNS lookup, so be aware of how many different hostnames you have in your images, scripts, objects, and other components.
  23. Provide height and width tags: Using height and width tags will tell browsers where everything will end up, and can load components faster.
  24. Clean up your JavaScript: “Minify” your JavaScript code by cutting out unnecessary characters like space, newline, and tab, and you’ll improve your response time.
  25. Use the Photoshop “save for web” feature: By using this feature, you can reduce your image file sizes and shave seconds off your load time.
  26. Avoid redirects: Redirects will always slow down users because they have to wait for their browser to find a new page.
  27. Avoid JavaScript as much as possible: JavaScript adds HTTP requests and size to your site, so any time you can cut it out will help your performance.
  28. Cut out duplicate scripts: Although it doesn’t sound likely, this does happen. Check your code to make sure that you’re not asking browsers to download unnecessary script.
  29. Cut down on image colors: Your image filesizes will be smaller if you have fewer colors in them.
  30. Learn how to properly use ETags: Servers like Apache come with ETags, which when used correctly can be helpful for caching. But if they’re not configured properly, they’ll slow you down.
  31. Never use images to display text: Cutting down on images this way will reduce your HTTP requests and help you load faster.
Tools
Put these tools to work for testing and improving your site’s speed and performance.
  1. Web Page Analyzer: Use this analyzer to test out your speed and performance.
  2. Online Image Optimizer: This optimizer will quickly and easily compress your image files.
  3. Akamai: Akamai offers a number of speedy solutions, specifically content delivery networks.
  4. HTML-Optimizer: This tool will clean up your HTML and script code of dangling tags, missing attributes and broken links.
  5. JSMin: JSMin promises to remove comments and unnecessary whitespace from JavaScript files so they’ll load faster. Generally, this tool can reduce your filesize by half.
  6. PageTest: Find out how your page downloads in various speeds from Dulles, Virginia, using this tool.
  7. CSS Tweak: With CSS Tweak, you can optimize your style sheets for better performance.
  8. JPEG Compression Wizard: Shrink your images without damage using this free service.
  9. ShrinkSafe: This Dojo compressor will reduce your filesize using obfuscation, which converts code into more compact, smaller strings.
  10. Tracert: With Tracert, you can monitor your site’s performance on speed, DNS, and traceroutes.
  11. mod_gzip: With this tool, you can serve compressed content on an Apache webserver.
  12. CleanCSS: This tool will merge similar selectors, get rid of properties you don’t need, and remove whitespace.
References
Check out these articles to get great ideas and guidance for improving performance on your site.
  1. Best Practices for Speeding Up Your Web Site: Take some advice from Yahoo! and learn how to increase your site’s speed.
  2. Speed Up Your Web Site Load Time: This article offers formatting tips that will increase your site’s performance.
  3. Need Web Site Speed?: Edward Tsai offers lots of suggestions for services, products, and strategies that will get your site moving.
  4. 5 Ways to Speed Up Your Site: Paul Stamatiou offers the methods he used to cut down his bloated webpage to that of 34kb.
  5. Improve Your Homepage Performance Significantly: Take these tips into consideration when evaluating your homepage’s performance.
  6. Speeding Up Your Web Page: About.com delivers a number of useful tips for tweaking your site’s speed.
  7. The Cost of Banner Advertising on Web Performance: Consider how serving advertising can slow down your site and affect the way users view your site.
  8. 6 Ways to Speed Up Your Site: Follow this article’s tips to get your site loading faster.
  9. How to Speed Up Your Webstite: This article offers almost 50 different strategies for reducing your site’s load time.
  10. Speed Up Your Site: Web Site Optimization: Jennifer Alvin has lots of great tips for “bandwidth thriftiness.”

No comments:

Post a Comment