On Tue, Nov 15, 2011 at 11:31 PM, Jeff Sebring <<a href="mailto:jeff@jeffsebring.com" target="_blank">jeff@jeffsebring.com</a>> wrote:<br>> Why limit developers from using best practices for performance, like<br>> Google's CDN for jQuery and fonts with local fallbacks? <br>
<br>Those "best practices" are better suited for plugins, not themes. Themes shouldn't be using Google's javascript CDNs, for example. They should be using the normal script enqueue system. A plugin like "Use Google Libraries" can then change that to automagically use Google's CDN instead. <br>
<br>Themes doing things like this is a case of premature optimization.<br><br>That said, it's perfectly okay to implement this sort of thing in a theme as long as it's a) optional and b) defaults to off. Not everybody can use a CDN, because not everybody has the same circumstances surrounding their site. A "best-practice" isn't really a best practice when it won't work in some edge case, and a theme should be made to work for everybody who wants to use it.<br>
<br>-Otto<br>