0

Hi,

I was looking for a quick answer on this as i have been wondering what is the advantage of using javascript files in an includes folder rather than on page?

So for example i have a javascript validation on my page, does it make a difference to the way it is execute compared to if i referenced to it rather than having the full file in my page?

thanks

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by d5e5
0

From what I've read, it's considered a best practice. One plus is that more than one web page can include the same script. Also if the script is called from different web pages and it's already in memory it doesn't have to be reloaded. I've been reading about it in Sams Teach Yourself JavaScript in 24 Hours

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.