[wp-trac] [WordPress Trac] #44229: Use CDNs where possible to serve external assets like jQuery

WordPress Trac noreply at wordpress.org
Fri May 25 15:50:28 UTC 2018


#44229: Use CDNs where possible to serve external assets like jQuery
-------------------------+------------------------------
 Reporter:  jacklenox    |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by superpoincare):

 Replying to [ticket:44229 jacklenox]:

 I think Wordpress' policy is to self host as much as possible. Google
 Fonts is an exception in bundled themes because the most optimal way
 involves doing a lot of user agent detection which is not easy to do and
 maintain.

 Having jQuery load from Google or some other CDN may not be preferable
 since many people use blockers such as uBlock Origin for which the expert
 setting is to block third party javascript.

 There are plugins available for loading jQuery from CDN and can also be
 done easily from the child theme.

 (Incidentally Chrome doesn't like document.write, so you shouldn't use
 it).

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44229#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list