Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to tell if script/asset is loaded by Asynchronous or Deferred in Chrome Network Tools

Is there any way to tell if a script/asset is loaded asynchronously or loaded deferred from the Google Chrome Browser Network Tools tab?

like image 525
Spencer Avatar asked Sep 05 '16 22:09

Spencer


People also ask

What is the difference between transferred and resources in chrome DevTools Network tab?

"Transferred" is the compressed size of all resources. You can think of it as the amount of upload and download data that a mobile user will use in order to load this page. "Resources" is the uncompressed size of all resources.

How do I debug async in Chrome?

# Enable async debugging in ChromeGo to the Sources panel of Chrome Canary DevTools. Next to the Call Stack panel on the right hand side, there is a new checkbox for "Async". Toggle the checkbox to turn async debugging on or off.

How do I check session storage in Chrome?

# View sessionStorage keys and valuesClick the Application tab to open the Application panel. Expand the Session Storage menu. Click a domain to view its key-value pairs. Click a row of the table to view the value in the viewer below the table.


1 Answers

Unfortunately, you can't see dependencies in the critical rendering path in the network tab of Google Chrome.

What you can do is look at the priority of requests (you might have to enable this tab in the network windows -> right click on the tabs). An async request should have a low priority (just like images which are loaded async). Chromes appears to do just that (https://bugs.chromium.org/p/chromium/issues/detail?id=408229), it's not super accurate, but might help you.

like image 171
Erik Avatar answered Oct 04 '22 01:10

Erik