[TYPO3-project-4-3] Speeding up AJAX calls
Steffen Ritter
info at rs-websystems.de
Mon Nov 16 08:23:18 CET 2009
Ries van Twisk schrieb:
> I currently do it like this:
>
> ajax_page = PAGE
> ajax_page.typeNum = 200
> ajax_page {
> config.disableAllHeaderCode = 1
> config.no_cache = 1
Hey Ries,
internally the default value of
config.pageGenScript
is set to the pageRenderer. This class is a "big mess up of all you
might night" - in html output, but not if you do ajax request.
if you
> config.disableAllHeaderCode = 1
you basically say: don't use any functionality, just pass the content to
output.
The idea behind: If you use an "empty" pageRenderer, only providing the
functionality you need (de facto: none but throuhpassing content), we
would not need to initialize unused stuff.
In fact: if the pagerenderer is short and clean and maybe reduce the
"executable" code within (f.e. only USER/USER_INT, only one userfunc o.
sth. l. this) there is nearly no difference between en eId Script which
initializes FE by Hand and a prober usage a page Type.
so if you do ajax.config.pageGenScript = ajaxCall.php (which
automatically could be set from ajax=1) would optically do the same as
you already mentioned, but internally would decrease the load. That's
why I proposed to ship an "empty" or better maximum reduced
pageGenScript for AJAX calls.
@ Steffen:
To care about the content I think should remain to the AJAX Builder.
regards
Steffen
More information about the TYPO3-project-4-3
mailing list