Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JavaScript and .js file ending, Strict Requirement for externally referenced pages?

Tags:

javascript

Is the .js file ending a strict requirement for externally referenced JavaScript pages? I have not run into issues with IE6,7,8 and FF3.5 in testing but wanted to confirm. I have an architecture limitation leading me to this question.

like image 797
rami Avatar asked Jan 19 '26 08:01

rami


1 Answers

I didn't think so, but if it's giving you problems just add a query string ending in ".js" to your url...

<script src="/scripts/myscript.weirdextension?dummy=myscript.js"></script>
like image 165
Dagg Nabbit Avatar answered Jan 21 '26 22:01

Dagg Nabbit