Currently the CSS and JS files are loaded in hook_init for every node add and edit page even if that node doesn't use active select.
This patch only loads files when an node is using active select.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | active_tags-6--1-load_when_needed-intergration-support.patch | 2.26 KB | dragonwize |
| #1 | active_tags-6--1-load_when_need.patch | 2.05 KB | dragonwize |
| active_tags-6--1-load_when_need.patch | 2.02 KB | dragonwize |
Comments
Comment #1
dragonwize commentedForgot to pass node type in previous patch.
Comment #2
dragonwize commentedMoved the file loading to a seperate function to support integration with other modules.
Now other modules just call:
Where $id is either a string id of the element wrapper or an array of string ids.
This enables easy integration with modules like the popularly requested content_taxonomy module. #310135: Support for Content Taxonomy planned?
Comment #3
dragonwize commentedForgot updated patch for last comment.
Comment #4
dragonwize commented