Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to see the order of js scripts loading in a page

how to see the order of js scripts in a page?

I currently see the source html and go through the script declarations. But is there a better way to see the loading order?

like image 897
user6123723 Avatar asked Oct 31 '25 20:10

user6123723


2 Answers

Update 2024

By now pretty much every browser offers a developer console. No need for an additional plugin/extension.

Usually those can be accessed via F12 on Windows/Linux.

enter image description here


Initial

You could use Firebug's NET console or the pendants of other developer tools as well. This gives you something like the following:

example

like image 150
Sirko Avatar answered Nov 02 '25 09:11

Sirko


The order of scripts in the html code might not give the exact sequence because there can be situation in which a script is on a remote server and it is down or it is slow. The best way to know is to analyze it visually on a timeline using chrome's in-built developer tool.

  1. Open the page in chrome
  2. Right click and inspect element
  3. Click Network
  4. Refresh the page to get the timeline view.

enter image description here

like image 42
Vinit Avatar answered Nov 02 '25 10:11

Vinit



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!