Timeline for Add conditional javascript from CDN (external library)
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 10, 2015 at 10:22 | comment | added | designarti | Thanks. I haven't seen any valid solution for this, yet there are enough advices everywhere, poiting to either a CSS solution, either local conditionals. So far nothing seems to be working. I'll keep digging. | |
Jun 10, 2015 at 10:19 | comment | added | Colin Shipton | Like I said it could be adapted for JavaScript, yes drupal_add_js has a group JS_THEME and can be used for external JS. My answer isn't a complete solution, it;s designed to point you in the right direction. | |
Jun 10, 2015 at 10:03 | comment | added | designarti | There was a huge page talking about the difference between loading CSS and JS. For CSS there's also a module called, Conditional Stylesheets. For example, does JS has a group as JS_THEME? And then again, files here are local. This is not the answer for external JS. | |
Jun 10, 2015 at 9:27 | history | answered | Colin Shipton | CC BY-SA 3.0 |