[Typo3-dev] send TYPO3 JS into external files

Christian Trabold trabold at mehrwert.de
Mon May 10 18:10:18 CEST 2004


Hi!

Is there a clue to pass JavaScript-Code dynamic rendered by TYPO3 into 
external files?

On large sites it could save some bandwidth (and so some money) and 
could clean up the source-code a bit (beautiful code, easier to debug).


Copying the already rendered code - e.g. for hover effects in a GMENU - 
to a separate file included as headerData would make no good deal:

The code would finally appear twice I guess: first included via file and 
secondly by TYPO3. And what if the customer changes the site structure?
So this has to be *dynamic*.


Could there be some disadvantages? Is there a problem with caching, is 
it more flexible than present methods?

What do you think about putting redundant js-content into external 
files? Does it it make sense to you?


Greetings,

Christian




More information about the TYPO3-dev mailing list