oo7ml
Feb 6th 2008, 1:00 pm
I have just noticed that alot of my pages have chunks of javascript all over them.
Can i cut this JS and save it as an external file.js
then put
<script language="JavaScript" type="text/javascript" src="js/file.js"></script>
in the <head> of each page
It seems to work but is it ok to do this?
Sorry if this seems a very silly question? thanks in advance
Can i cut this JS and save it as an external file.js
then put
<script language="JavaScript" type="text/javascript" src="js/file.js"></script>
in the <head> of each page
It seems to work but is it ok to do this?
Sorry if this seems a very silly question? thanks in advance