Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find Missing Javascript Includes in Website

Say I have several JavaScript includes in a page:

<script type="text/javascript" src="/js/script0.js"></script>
<script type="text/javascript" src="/js/script1.js"></script>
<script type="text/javascript" src="/js/script2.js"></script>
<script type="text/javascript" src="/js/script3.js"></script>
<script type="text/javascript" src="/js/script4.js"></script>

Is there a way i can tell if any of those weren't found (404) without having to manually check each one? I guess i'm looking for an online tool or something similar. Any ideas?

like image 596
SeanDowney Avatar asked Mar 31 '26 13:03

SeanDowney


2 Answers

If you get the Firebug firefox plugin and enable the consoles it should tell you when there are errors retrieving resources in the console.

like image 143
Alex Argo Avatar answered Apr 03 '26 02:04

Alex Argo


I don't use other browsers enough to know where to find a similar feature in them, but Safari has an Activity window that displays all of the included files for a given web page and which ones were unable to be retrieved.

like image 25
John Calsbeek Avatar answered Apr 03 '26 03:04

John Calsbeek



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!