[Typo3-dev] Javascript Code in external .js-file
Daniel Brün
dbruen at saltation.de
Tue May 11 13:02:04 CEST 2004
Cool Feature!
It would also be great if all the static JS-Code contributed by
extensions would automagically be placed in such an external JS-File.
For instance the JS-code supplied with this function call for a
frontend-plugin:
$GLOBALS["TSFE"]->setJS(...)
The JS-File could be dynamically created and also cached.
For the case that an extension dynamically changes its JS-Code a flag
could be introduced to define wether it's static JS or dynamic JS.
As most browsers also cache the JS-File, the name of the file should
change when it's content has changed...so the browser is forced to
reload the file.
The resulting HTML would look really great then!
Hmm... just dreaming aloud ;-)
Ciao,
Dan.
More information about the TYPO3-dev
mailing list