[development] Where should we call drupal_add_js?
Wim Leers
bashratthesneaky at gmail.com
Mon May 21 14:40:33 UTC 2007
1) You're still on D5.
2) It's not yet in D6.
You're right that it would produce less distinct files. But not
everybody will have it enabled, and thus you should still only add
your JS when it's necessary.
Wim
On May 21, 2007, at 16:33 , Fernando Silva wrote:
> But if we use the "next to come..." Javascript aggregator feature,
> wouldn't it make less and smaller files?
>
> On 5/21/07, Bèr Kessels <ber at webschuur.com> wrote:
>> Op maandag 21 mei 2007, schreef Wim Leers:
>> > Option #3 is the best one, if the situation permits it.
>>
>> One important reason for this, is, that this way you won't present
>> your users
>> with tons of JS that you only use in the backend. JAvascript that
>> they will
>> never use anyway.
More information about the development
mailing list