Welcome visitor
* Login
* Register
It is currently January 21st, 2019, 11:43 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 4 posts ] 
Author Message
  using external file for javascript code
PostPosted: June 29th, 2009, 8:50 pm 

Posts: 21
hi, right now im using a lot of javascripts on my site and some ppl say that thats the reason for it being so slow on loading. would it help if i put all the javascript in a diferent file and then call it from the html? and how could i do that?


Top
 Profile  
 
  Re: using external file for javascript code
PostPosted: June 29th, 2009, 9:05 pm 
User avatar

Posts: 137
<script type="text/javascript" src="the_file.js"></script>

hope this helps.


Top
 Profile  
 
  Re: using external file for javascript code
PostPosted: June 29th, 2009, 9:12 pm 

Posts: 21
thanks for your help rockstar. How should i structure the js file?


Top
 Profile  
 
  Re: using external file for javascript code
PostPosted: June 29th, 2009, 9:24 pm 
User avatar

Posts: 81
a js file is like a the space inside the <scirpt> & </script> tags, easy as that.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron