| Programming C# C++ (7) Delphi (618) Java (8) JavaScript (30) Document (8) Events (8) ExtJS (8) Strings (3) perl (9) php (4) 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:
|