[theme-reviewers] theme-reviewers Digest, Vol 18, Issue 30

Otto otto at ottodestruct.com
Wed Nov 16 16:27:25 UTC 2011


On Tue, Nov 15, 2011 at 11:31 PM, Jeff Sebring <jeff at jeffsebring.com> wrote:
> Why limit developers from using best practices for performance, like
> Google's CDN for jQuery and fonts with local fallbacks?

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.

Themes doing things like this is a case of premature optimization.

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.

-Otto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20111116/9aaafc2a/attachment.htm>


More information about the theme-reviewers mailing list