Skip to content

Instantly share code, notes, and snippets.

@zQueal
Created April 24, 2012 01:13
Show Gist options
  • Save zQueal/2475256 to your computer and use it in GitHub Desktop.
Save zQueal/2475256 to your computer and use it in GitHub Desktop.
YSlow Bookmarklet
/* Bookmarklet, runs Yahoo! YSlow on the current page. Excellent for debugging */
javascript:(function(y,p,o){p=y.body.appendChild(y.createElement('iframe'));p.id='YSLOW-bookmarklet';p.style.cssText='display:none';o=p.contentWindow.document;o.open().write('<head><body%20onload="YUI_config={win:window.parent,doc:window.parent.document};var%20d=document;d.getElementsByTagName(\'head\')[0].appendChild(d.createElement(\'script\')).src=\'http://d.yimg.com/jc/yslow-bookmarklet.js\'">');o.close()}(document))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment