Webdev:Cesium:Beacons: Difference between revisions

Moved Page Speed info into future section, added future versions where changes expected.
(Updated the list based on latest discussions →‎YSlow)
(Moved Page Speed info into future section, added future versions where changes expected.)
Line 1: Line 1:
= Overview<br>  =
= Overview =


This page is for tracking beacon information from YSlow and PageSpeed. It is intended both as a reference '''and''' brainstorming tool.<br>  
This page is for tracking beacon information from YSlow and PageSpeed. It is intended both as a reference '''and''' brainstorming tool.<br>  


<br>
= YSlow&nbsp;Beacon Parameters =
 
= YSlow&nbsp;Beacon Parameters<br>  =


*w – size of the page in bytes (v1 sent size in kilobytes)  
*w – size of the page in bytes (v1 sent size in kilobytes)  
Line 38: Line 36:
*ynofilter – Avoid AlphaImageLoader filter  
*ynofilter – Avoid AlphaImageLoader filter  
*yimgnoscale – Do not scale images in HTML  
*yimgnoscale – Do not scale images in HTML  
*yfavicon – Make favicon small and cacheable<br>
*yfavicon – Make favicon small and cacheable
 
<br>


= PageSpeed Beacon Parameters =
= PageSpeed Beacon Parameters =


Beacon Documentation: [http://code.google.com/p/page-speed/wiki/BeaconDocs http://code.google.com/p/page-speed/wiki/BeaconDocs]
Currently, Page Speed does not support beacons, but starting v1.2 it will, [[#PageSpeed 1.2|see more info below]].
 
Bug: [http://code.google.com/p/page-speed/issues/detail?id=58 http://code.google.com/p/page-speed/issues/detail?id=58]


= Future Beacon Parameters&nbsp;<br>  =
= Future Beacon Parameters =


A future goal is to have YSlow and PageSpeed beacon detailed information about a page's performance. This can be in addition to a normal GET&nbsp;request. The URL&nbsp;parameters can have basic information while a larger response in the POST&nbsp;body can contain detailed statistics regarding a page's assets and score.  
A future goal is to have YSlow and PageSpeed beacon detailed information about a page's performance. This can be in addition to a normal GET request. The URL parameters can have basic information while a larger response in the POST body can contain detailed statistics regarding a page's assets and score.  


=== YSlow ===
=== YSlow 2.0.1 ===
Starting with v2.0.1, besides the existing beacon preference: beaconUrl and optinBeacon, a new preference will be added to control the information to be included in the beacon.
Starting with v2.0.1, besides the existing beacon preference: beaconUrl and optinBeacon, a new preference will be added to control the information to be included in the beacon.


Line 63: Line 57:


New beacon parameters:
New beacon parameters:
* lt - Page load time (v2.0.1, basic)
* lt - Page load time (basic)
* g - json tree of the resultset (scores of all rules in the ruleset) (v 2.0.1, grade)
* g - json tree of the resultset (scores of all rules in the ruleset) (grade)
* w_c - page weight with primed cache (v2.0.1, stats)
* w_c - page weight with primed cache (stats)
* r_c - number of requests with primed cache (v2.0.1, stats)
* r_c - number of requests with primed cache (stats)
* stats - json tree of stats, e.g. <pre>{"doc": { "r": 1, "w": 36.1 }, "js": {"r": 3, "w": 29.0 }</pre> (v2.0.1, stats)
* stats - json tree of stats, e.g. <pre>{"doc": { "r": 1, "w": 36.1 }, "js": {"r": 3, "w": 29.0 }</pre> (stats)
* stats_c - json tree of stats with primed cache (v2.0.1, stats)
* stats_c - json tree of stats with primed cache (stats)
* comps - json tree of comps, e.g. <pre>{"doc": { "url": url, "w": size, "gzip": 36.1, "cr": 320, "cs": 971,"expires": "2009/10/11", "response": 537, "etag": "xxx-xx"}}</pre> (v2.0.1, comps)
* comps - json tree of comps, e.g. <pre>{"doc": { "url": url, "w": size, "gzip": 36.1, "cr": 320, "cs": 971,"expires": "2009/10/11", "response": 537, "etag": "xxx-xx"}}</pre> (comps)
 
=== PageSpeed 1.2 ===


=== PageSpeed ===
Starting with v1.2, Google PageSpeed will start supporting beacons. You can see documentation in progress here: [http://code.google.com/p/page-speed/wiki/BeaconDocs http://code.google.com/p/page-speed/wiki/BeaconDocs]


TBD.
And original bug used for tracking this feature here: [http://code.google.com/p/page-speed/issues/detail?id=58 http://code.google.com/p/page-speed/issues/detail?id=58]