Support for javascript files and inline scripts
punz - July 11, 2007 - 13:36
| Project: | Preempt Panels |
| Version: | 5.x-1.0 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed |
Jump to:
Description
I might be missing something, but it doesn't seem that it caching the correct javascript includes and outputing the inline ones for modules like fivestar. On first load, it displays correctly, but once the cached version is being served it is not including the js files or inline scripts. Do you have any advice?

#1
Any development on this one?
#2
Things like Javascript includes are called "side effects," and I don't cache those. The best bet is to apply the side-effects whenever you load the item through the Preempt cache. So, see what JS and CSS files need to be added, and make the drupal_add_css, etc. calls yourself. Drupal core would need to be patched for the Preempt cache to support JS and CSS side-effects.
#3