[TYPO3-ect] general approach for JS
Steffen Kamper
steffen at sk-typo3.de
Tue Sep 11 11:30:16 CEST 2007
Hi Joerg,
"Joerg Schoppet" <joerg at schoppet.de> schrieb im Newsbeitrag
news:mailman.1.1189489402.23659.typo3-team-extension-coordination at lists.netfielders.de...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Steffen Kamper wrote:
>> Hi,
>>
>> while studying the Yahoo rules for speed optimization [1] (especially
>> Rule
>> #6) JS should be moved to the bottom.
>> I know that is not possible all the time, but the libs are included in
>> TYPO3
>> in head. If i use extensions, i have no possibility to influence this.
>>
>> So i come to the conclusion, that the best thing would be a general
>> JS-Collector Object. There all JS could be collected and rendered by
>> pagegen-script.
>> My wishes for that would be
>> - categorization (include a lib/snippet, may be some standards for
>> standard
>> libs e.g. mootools, prototype etc.)
>> - configuration with TS to allow enable/disable including for some pages
>>
>> e.g. there is image lightbox, which includes prototype etc. It's only
>> necessary on pages where pictures are defined as lightbox images, other
>> pages don't need this inclusion.
>> there is ExtJS inclusion but is only needed on pages having ExtJS
>> widgets.
>> etc...
>>
>> I will start a proof of concept for this and would be glad if you could
>> write your ideas / proposals.
>>
>> vg Steffen
>>
>>
> Hi Steffen,
>
> this sounds very interesting.
>
> Some times ago I also thought about such a container-extension.
> Additionally I wanted to implement a nice BE-interface to manage the
> different js-libs:
> - - jQuery
> - - prototype
> - - script.aculo.us
> - - YUI
> - - Ext
>
> I though about a standardized api, each extension can simple "say" I
> need the following libs "..." and after all extensions on a page have
> requested there libs the management-extension is responsible for the
> right inclusion.
>
> What do you think about this additional feature?
>
this is exactly what i'm thinking about. When there are standard names for
this libs it should be possible to say:
include jquery
include motools
etc.
with the option to set the path for these js-libs.
The main point is the central point where you can configure the includes as
you like and need.
vg Steffen
More information about the TYPO3-team-extension-coordination
mailing list