| OLD | NEW |
| 1 <!-- BEGIN AUTHORED CONTENT --> | 1 <!-- BEGIN AUTHORED CONTENT --> |
| 2 <p id="classSummary"> | 2 <p id="classSummary"> |
| 3 Use the <code>chrome.experimental.devtools.resources</code> module to retrieve | 3 Use the <code>chrome.experimental.devtools.resources</code> module to retrieve |
| 4 the information about network resources displayed by DevTools' Network panel. | 4 the information about network resources displayed by DevTools' Network panel. |
| 5 </p><p> | 5 </p><p> |
| 6 See <a href="experimental.devtools.html">DevTools APIs summary</a> for | 6 See <a href="experimental.devtools.html">DevTools APIs summary</a> for |
| 7 general introduction to using Developer Tools APIs</a>. | 7 general introduction to using Developer Tools APIs</a>. |
| 8 </p> | 8 </p> |
| 9 | 9 |
| 10 <h2>Notes</h2> | 10 <h2>Notes</h2> |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 <p>The following code logs URLs of all images larger than 40KB as they are | 35 <p>The following code logs URLs of all images larger than 40KB as they are |
| 36 loaded:</p> | 36 loaded:</p> |
| 37 | 37 |
| 38 <pre> | 38 <pre> |
| 39 chrome.experimental.devtools.resources.onFinished.addListener(function(resource)
{ | 39 chrome.experimental.devtools.resources.onFinished.addListener(function(resource)
{ |
| 40 if (resource.response.bodySize > 40*1024) | 40 if (resource.response.bodySize > 40*1024) |
| 41 experimental.chrome.devtools.log("Large image: " + resource.request.url); | 41 experimental.chrome.devtools.log("Large image: " + resource.request.url); |
| 42 }); | 42 }); |
| 43 </pre> | 43 </pre> |
| 44 | 44 |
| 45 <h2 id="examples">Examples</h2> |
| 46 |
| 47 <p> |
| 48 You can find examples that use this API in |
| 49 <a href="samples.html#devtools.resources">Samples</a>. |
| 50 </p> |
| 51 |
| 45 <!-- END AUTHORED CONTENT --> | 52 <!-- END AUTHORED CONTENT --> |
| OLD | NEW |