| Programming C# C++ (7) Delphi (604) Java (8) JavaScript (55) Document (8) Events (8) Strings (3) perl (40) php (12) VBScript (1) Visual Basic (1)
|
Advantages of keeping Javascript in include files
(1 votes). Leave comments and/ or rate it.
Question: Should I embed my javascript code in HTML files or should I use include files? My pages share only some of the Javascript code.Answer: Obviously the advantage of keeping the code in an external *.js file is more obvious the more code your pages share. But even if the overlap is limited there are some other benefits:
Comments:
|