[wp-trac] [WordPress Trac] #31743: Add HeadJS Load to Core
WordPress Trac
noreply at wordpress.org
Tue Mar 24 00:34:03 UTC 2015
#31743: Add HeadJS Load to Core
-----------------------------+-----------------------------
Reporter: wpsmith | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Script Loader | Version:
Severity: normal | Keywords:
Focuses: javascript |
-----------------------------+-----------------------------
HeadJS (load, not the feature detection or browser sniffing portion) would
be a great utility to add to WordPress core.
Specifically:
head.load.js:
http://cdnjs.cloudflare.com/ajax/libs/headjs/1.0.3/head.load.js
head.load.min.js:
http://cdnjs.cloudflare.com/ajax/libs/headjs/1.0.3/head.load.min.js
head.load.min.js.map:
http://cdnjs.cloudflare.com/ajax/libs/headjs/1.0.3/head.load.min.js.map
This library gives developers the ability to call scripts into the head
(via wp_localize_script() or AJAX).
Here's a brief example:
https://gist.github.com/wpsmith/971c2fab9442aab0a2ae
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31743>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list