5 June 2009 View Comments

Google Page Speed

page-speed-javascript-defered1

page-speedWeb developers have to check out Google’s new Firefox + Firebug addon called Page Speed. This addon inspects your webpage to see how you can optimize the load time. Yahoo’s YSlow was good, but Google takes it a few steps further to even inspect your html and styles to see what can hider the render time of the page once it’s loaded.

Apart from the standard tests on if your content is gzipped, server headers are correct and enable client side caching and parallelizing downloads from differnent host names, this addon also does the following:

  • Inspect your CSS files for unused styles
  • Inspect your Cookie size – the bigger the cookie size, the bigger the request sent to the server everytime, since every request will send your cookies from the browser to the server
  • Checks image compression ratios to see if you’re running on the optimal compression.
  • Checks to see if your Javascript is minified, if not, it’ll show you how much you can save if you minify your javascripts
  • Inspects the execution of Javascript on the page on load to show which Javascript files can be deferred in loading, by placing the Javascript loads at the end of the page instead of the head. This can drastically increase the page render times.
  • If you load multiple Javascripts and CSS files, Page speed will give you recommendations to merge these into a single file.

Page Speed helps you improve your site’s performance based on the following categories of best practises:

Get Google Page Speed at: http://code.google.com/speed/page-speed/

Screenshots:

Google Page Speed Recommendations

Google Page Speed Recommendations

CSS Optimization Recommendations

CSS Optimization Recommendations

Javascript Minify Savings

Javascript Minify Savings

Suggestion to Defer Javascript Loading

Suggestion to Defer Javascript Loading

24 March 2008 View Comments

Firefox 3 ready for prime-time

Firefox 3 seems to have stabilized, and is ready for the masses to test it out. The final version should be out by June according to this news report from Reuters:

“The program’s creators told Reuters on Thursday that the privately-held company’s trial version of Firefox 3 browser is ready for the masses to use after months of development.
Engineers at Mozilla are still putting the finishing touches on the software and hope to release the final version of Firefox 3 by the end of June, Schroepfer said.”

Link: Mozilla says Firefox 3 ready for prime-time | Reuters

Tags:
3 October 2007 View Comments

PHP >> ignore_user_abort

If you’re looking for a way to keep a PHP script running on the server even after the user navigates from the page or hits the stop button, you can use the “ignore_user_abort” flag in the php.ini file or set it using ini_set function.

How does PHP know that a user has aborted a page load then?

Paul explains how this works in PHP at his blog stating that PHP has no way of knowing that a user has actually aborted a page load until it sends out some output to the brower.

“You’ve probably heard of the setting in php.ini ignore_user_abort, and how it allows you to ignore a user aborting page load and thus terminating your script mid way through. Today I found out that didn’t quite mean what I thought that meant.”

Head over to Paul’s article: When does a user abort? – <?paul

Tags: