Timeline for How to add defer="defer" tag in plugin javascripts?
Current License: CC BY-SA 4.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 21, 2021 at 20:59 | history | edited | fuxia♦ | CC BY-SA 4.0 |
added 18 characters in body
|
Jun 12, 2015 at 12:46 | comment | added | Charles | @crissoca, thanks mate. Had forgotten this till TinyMCE didn't do what it should (missing qtags and so on :-D ). So yes use this ONLY at the front-end! | |
Apr 28, 2015 at 2:09 | comment | added | crissoca |
Probably a good idea in case someone wants to turn this to work with other scripts will be to make sure to validate to use it only on the font-end maybe using if( ! is_admin() ){} popular plugins like ACF might give you a headache.
|
|
Dec 21, 2014 at 10:22 | history | edited | fuxia♦ | CC BY-SA 3.0 |
added 441 characters in body
|
Feb 1, 2014 at 10:54 | comment | added | fuxia♦ |
@henrywright WordPress add ' on both side of the returned string, an " would result in invalid HTML.
|
|
Feb 1, 2014 at 2:09 | comment | added | henrywright | Great, but why: Must be a ', not "! ? | |
Jan 16, 2013 at 8:16 | comment | added | webaware | That's a nice hack, and so simple. I reckon it'd be good also for adding charset='utf-8' when necessary! | |
Jun 6, 2012 at 15:07 | comment | added | Nicola Peluchetti | This is perfect also to use with data-main in requirejs | |
Jan 9, 2012 at 21:33 | vote | accept | PrivateUser | ||
Jan 9, 2012 at 20:32 | history | edited | fuxia♦ | CC BY-SA 3.0 |
Added link to plugin.
|
Jan 9, 2012 at 11:56 | history | answered | fuxia♦ | CC BY-SA 3.0 |