Cache External Javascript

Rob Loach - February 8, 2008 - 16:53
Project:Drupal
Version:7.x-dev
Component:javascript
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work
Issue tags:JavaScript, Patch Spotlight
Description

This discussion branches off of this issue to add the ability to reference external Javascript files using drupal_add_js.

This issue tracks the ability to cache these external Javascript files.

#1

Rob Loach - February 14, 2008 - 22:34
Status:active» postponed

Drupal_add_js() has to get external javascript support first.

#2

Wim Leers - March 3, 2008 - 13:14

Subscribing. This is a must for better page loading performance.

#3

dave.trainer - April 16, 2008 - 12:25

This is an important enhancement for Translatable Comments.

#4

Rob Loach - June 5, 2008 - 18:42
Status:postponed» duplicate

Moved to the reinvention of drupal_add_js: http://drupal.org/node/251578#comment-871405

#5

Rob Loach - February 28, 2009 - 09:12
Status:duplicate» needs work

Would be good to have SimpleTests......

Also have to figure out what to do if the file doesn't return a successful return code.

AttachmentSize
219346.patch 2.57 KB

#6

hass - February 28, 2009 - 11:22

For caching external files it is *very* important to have an auto clean-up feature. Additional you need to wipe the locally cached files if the clean up button is clicked on performance page. You can find an example for the auto clean-up in the Google Analytics module... the remote and locally cached file can change and therefore it will be deleted after one day and downloaded again if requested first. I think this is basic functionality for this caching feature and needs to be added to the above code.

#7

xjm - March 14, 2009 - 04:32

Tracking.

 
 

Drupal is a registered trademark of Dries Buytaert.