Closed (won't fix)
Project:
Core Library
Version:
7.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 May 2012 at 11:06 UTC
Updated:
3 Aug 2015 at 11:47 UTC
Jump to comment: Most recent
Comments
Comment #1
pounardI'm fine with that. I'd be glad to find a better solution where the header or footer location could be determined with such algorithm (from the more general to the more specific):
The location of JS:
This algorithm would test all these cases from the later to the first and stop at the first one matching.
In any case, this algorithm must be done only once, once done, it must not differ in any case (and must remain the same throught all site). This will ensure aggreation groups will remain the same and cover the full site.
Any ideas? I wrote this really quick I'm not sure of the implications, any help welcome.
Can you describe a bit more your need, and give me examples of libraries with which you need this?
Comment #2
ardas commentedHello,
Thank you for your work on this module. We like it and would like to include in our Drupal built.
We will send you a patch quite soon and then we can discuss these ideas...
As for your logic I don't think it should be too complicated. Lets think what exactly will give us valuable performance improvement. As I see we have 4 things:
1. Minification
2. More advanced aggregating (no groups just put everything in one file)
3. Aggregating all files regardless of which of them are needed on current page (does this help actually?)
4. Bypassing aggregation process (we didn't try it yet)
Meanwhile, we found a little issue: Since you gather all JS files even if not all are needed on this page (to get one big file) some files go without scope parameter and here a notice is thrown. For files without scope we set HEADER to remove this PHP notice. This will be included into our patch.
Please find me in Skype (my skype id: dmitry.kresin) and we can discuss everything faster.
Thanks.
Comment #3
pounardDo you have a jabber (can be gtalk) account?
Comment #4
ardas commentedSure.
Comment #5
pounardI copied your email addres, I advise you to remove it from the post if you don't want it to be publicly visible. Next time send it via my the contact form :)
Comment #6
ardas commentedAgree.
Thanks I will :)
Comment #7
pounardThis module is dead.