[wp-trac] [WordPress Trac] #30770: Theme Review: Stylesheets and Scripts
WordPress Trac
noreply at wordpress.org
Fri Dec 19 00:46:05 UTC 2014
#30770: Theme Review: Stylesheets and Scripts
--------------------------+-----------------------------
Reporter: emiluzelac | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 4.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Quick heads up guys:
- No hard coding of scripts, styles and Favicons unless a browser
workaround script. Everything should be enqueued.
{{{
<script>(function(){document.documentElement.className='js'})();</script>
}}}
Please [https://make.wordpress.org/themes/handbook/review/required
/#stylesheets-and-scripts see]
The workaround noted above refers to e.g.
{{{
<script src="<?php echo esc_url( get_template_directory_uri() );
?>/js/html5.js"></script>
}}}
Yep, it's small, but it still needs to be moved and added via
{{{functions.php}}} :)
Thanks for the great theme!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30770>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list