[TYPO3-ect] general approach for JS
Franz Koch
typo.removeformessage at fx-graefix.de
Tue Sep 11 18:07:28 CEST 2007
Hi Steffen,
> i didn't investigate the cache-mechanism at this point. If includes are in
> the body (or after the </body>) they schould be cached too by typo3,
> the cache of the header depends on the expire-settings. I first try to
> follow the rules for optimization.
> But this is also an important point to look at.
>
> The main point of moving JS outside the head is to get faster render of the
> page, maybe it takes a little time after display for loading the JS.
Well - that's my point. I think it doesn't care if the (static) JS-file
is included in the <head> or at the end of the <body> tag, because I
think the browser reads the line pointing to the JS-file and fetches it
directly from the browser-cache.
If you are speaking of dynamic JS files generated by TYPO3 - then your
targets are good.
But I'm not sure about the caching of external files inside the browser
when the loaded HTML page is not allowed to cache.
--
Greetings,
Franz
More information about the TYPO3-team-extension-coordination
mailing list