Neat Little Tricks by Anup Bishnoi

What's slowing your website down?

Get a quick list of resources in your website that loaded slowly during page load, using Chrome DevTools.

This uses Resource Timing API enabled on the latest Chrome.

Show me the code!

Just open the console and run:

  .sort(function (a, b) {
    return a.duration > b.duration ? -1 : 1;
  .map(function (entry) { return; })


Running it on Crood gave me these results up top:

Surprisingly to me, ace.js, require.js and bootstrap.css consistently take longer than jquery.js

Use cases

  • You could send this list to server and record for analytics later.
  • You could make big decisions about what files (resources) to concatenate together by running this over and over.


  • Get Top 5 (and so on) of the most taxing resources by tacking on .slice(0, 5) before .join('\n');
  • Use requestStart and startTime to compare load order of resources.