Jump to content

.js file help


squiblo

Recommended Posts

In the head tags of my page is have this..

 

<script type="text/javascript" src="http://localhost/includes/javascript.js"></script>

 

and at the moment I am putting all the my JavaScript in that file, but that file is now becoming seriously long, and harder to read, is there a way to split the file up into many different files, to make it easier to understand and read. I have tried putting two script tags like this, but this did not seem to work.

 

<script type="text/javascript" src="http://localhost/includes/javascript.js"></script>
<script type="text/javascript" src="http://localhost/includes/javascript2.js"></script>

 

What can I do to make it easier for myself?

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/204346-js-file-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.