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
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

johsw - March 3, 2008 - 16:27

Any development on this one?

#2

David Strauss - April 25, 2008 - 18:09

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

David Strauss - April 25, 2008 - 18:13
Status:active» postponed
 
 

Drupal is a registered trademark of Dries Buytaert.