You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@aurora.apache.org by "David Robinson (JIRA)" <ji...@apache.org> on 2014/07/10 00:07:04 UTC

[jira] [Comment Edited] (AURORA-578) observer shouldn't include jquery

    [ https://issues.apache.org/jira/browse/AURORA-578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14056763#comment-14056763 ] 

David Robinson edited comment on AURORA-578 at 7/9/14 10:05 PM:
----------------------------------------------------------------

I think that would be a rare exception, but [it could still be handled|https://stackoverflow.com/questions/5257923/how-to-load-local-script-files-as-fallback-in-cases-where-cdn-are-blocked-unavai]. eg:

{noformat}
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="/assets/jquery.js">\x3C/script>')</script>
{noformat}


was (Author: drobinson):
I think that would be a rare exception, but [it could still be handled|https://stackoverflow.com/questions/5257923/how-to-load-local-script-files-as-fallback-in-cases-where-cdn-are-blocked-unavai]. eg:

{noformat}
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/libs/jquery-1.5.1.min.js">\x3C/script>')</script>
{noformat}

> observer shouldn't include jquery
> ---------------------------------
>
>                 Key: AURORA-578
>                 URL: https://issues.apache.org/jira/browse/AURORA-578
>             Project: Aurora
>          Issue Type: Bug
>          Components: Thermos, UI
>            Reporter: David Robinson
>
> The cache hit-rate for jquery.js is zero since each server points to its local copy. If we instead point to a version stored on a CDN then the cache hit-rate will be higher. This will save around 247 kB per request.



--
This message was sent by Atlassian JIRA
(v6.2#6252)