Skip to main content
8 events
when toggle format what by license comment
Jun 17, 2020 at 9:58 history edited CommunityBot
Commonmark migration
Oct 3, 2014 at 18:37 vote accept Valentin Despa
Oct 3, 2014 at 14:05 comment added Lodder Personally, I always load these script via CDN using normal script tags then below that, use <jdoc:include type="head" /> so the other script that are imports using JDocument are always imported after.I've provided an example in my answer to show you. This is also how it's done in the Protostar template however they decided to import html5shiv after rather than before
Oct 3, 2014 at 14:04 history edited Lodder CC BY-SA 3.0
added 281 characters in body
Oct 3, 2014 at 13:55 comment added Valentin Despa It helps me avoid conflicts / order of loading if I can load them all with JDocument. Anyway the code itself could also be local not just from a CDN.
Oct 3, 2014 at 13:53 comment added Lodder Ahh fair enough. Just out of curiosity, why do you want to use JDocument to import scripts from a CDN? Surely the code you posted in your question would suffice
Oct 3, 2014 at 13:49 comment added Valentin Despa addScript will at the files to an array and later render them along with other files. The conditional comments will be left outside. So this does not work. But thanks!
Oct 3, 2014 at 13:12 history answered Lodder CC BY-SA 3.0