[wp-trac] [WordPress Trac] #31701: Emoji: Avoid enqueueing JS by default
WordPress Trac
noreply at wordpress.org
Fri Mar 20 15:13:02 UTC 2015
#31701: Emoji: Avoid enqueueing JS by default
-----------------------------+--------------------------------------
Reporter: obenland | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.2
Component: General | Version: trunk
Severity: major | Resolution:
Keywords: emoji has-patch | Focuses: javascript, performance
-----------------------------+--------------------------------------
Comment (by wonderboymusic):
Every time `wp_print_scripts/styles()` runs, we are going to run this JS?
This feels strange. I'm all for smilies, but are they really this
important?
What happens if I call `wp_print_scripts()` manually 6 times? Does this
code run every time? What if I never want this code to run, do I have to
add a filter every time I fire up a WordPress project?
This code makes sense for WordPress.com and Jetpack, I get it, but this
seems weird to me as base product code.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31701#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list