Project:Drupal core
Version:7.x-dev
Component:javascript
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work
Issue tags:JavaScript, Patch Spotlight

Issue Summary

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.

Comments

#1

Status:active» postponed

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

Status:postponed» closed (duplicate)

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

#5

Status:closed (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.

AttachmentSizeStatusTest resultOperations
219346.patch2.57 KBIgnored: Check issue status.NoneNone

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

#8

Status:needs work» closed (fixed)

Cleaning up the issue queue.

#9

Hope that this will help other D6 users

http://drupal.org/project/cache_external_files

#10

Status:closed (fixed)» needs work

Did #5 and #6 get addressed?