[PHP] Re: large external script to include in many pages

2001-08-13 Thread Henrik Hansen
[EMAIL PROTECTED] (Web Manager) wrote: Hello, I am testing a new DHTML code for navigation menus. I plan to use it throughout my web pages made with PHP. The script is about 600 lines long! Beside making a : define (script1, . . . ); and calling the script1

[PHP] Re: large external script to include in many pages

2001-08-13 Thread Web Manager
Henrik Hansen wrote: [EMAIL PROTECTED] (Web Manager) wrote: Hello, I am testing a new DHTML code for navigation menus. I plan to use it throughout my web pages made with PHP. The script is about 600 lines long! Beside making a : define (script1, . . .

[PHP] Re: large external script to include in many pages

2001-08-13 Thread Chris Lee
putting something like script src=../myscript.js isnt really going to speed things up at all. the browser will still have to open myscript.js and read all 600 lines from there. if you ask me on GET / HTTP/1.1 call is faster then two. I would just include_once('../myscript.html'); in the file you