[TYPO3-dev] Including files to the <head> once
Steffen Kamper
info at sk-typo3.de
Mon Jan 5 11:37:54 CET 2009
Hi,
Martin Kutschker schrieb:
> Steffen Kamper schrieb:
>> Hi,
>>
>> one thing i forgot. For including JS it's also important to define the
>> load order. eg custom script depends on library and needs to be include
>> later, some scripts are better positioned at end of body.
>
> But the same is true for CSS. The load order is also important.
>
> And as I can manipulate everything else with JS a single JS block is not
> enough. It must be possible to put JS everywhere within the header section.
>
yeah. Therfore we need a new concept.
An idea could be something like
includeHeaderData {
type = script/css/user
file = path-to-filename
identifier = unique identifier (eg. prototype)
inline (
string for inline
)
attributes = xyz (like for css media-attribute etc.
position = numeric index
blockPosition = header/bodyBegin/bodyEnd
}
a good handling in pagegen could take care of preventing double-inclusion.
vg Steffen
More information about the TYPO3-dev
mailing list