title: How to load static mediawiki content from a CDN?
body: <p>I'd like to load all the MedaiWiki static resources from a Content Delivery Network (CDN) for obvious reasons (using MW 1.17.0).</p>
  
  <p>I think I need to set $wgStylePath=<a href="http://cdn.example.com/" rel="nofollow noreferrer">http://cdn.example.com/</a> Then put everything currently in my /skins/ directory into <a href="http://cdn.example.com/" rel="nofollow noreferrer">http://cdn.example.com/</a>
  (this appears to be suggested in this Stack Overflow question/answer: <a href="https://stackoverflow.com/questions/7114177/how-can-you-change-images-src-attributes-in-mediawiki-to-access-a-cdn">How can you change images src attributes in mediawiki to access a CDN?</a> but it's not very clear</p>
  
  <p>My concern is the .php files that are currently in the /skins/ directory...</p>
  
  <p>My only thought is that I need to put all the sub-directories from /skins/ into the CDN, but not the .php files that are directly in /skins/</p>
  
  <p>Maybe I'm going about this the wrong way... is there a better way to achieve what I'm trying to do? (I'd like all the theme related .js, .css and image files to load from the external CDN)</p>
  
  <p>Thanks,</p>
  
  <p>-Dan </p>