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
Drupal_add_js() has to get external javascript support first.
#2
Subscribing. This is a must for better page loading performance.
#3
This is an important enhancement for Translatable Comments.
#4
Moved to the reinvention of drupal_add_js: http://drupal.org/node/251578#comment-871405
#5
Would be good to have SimpleTests......
Also have to figure out what to do if the file doesn't return a successful return code.
#6
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
Tracking.