We recently encountered an issue where the Juicer embed javascript was conflicting with the version of Slick we are using on the site. After emailing Juicer.io about it, they pointed us to use //assets.juicer.io/embed-no-jquery-no-slick.js. Proposing that an option be added to the module to allow site builders to select which javascript file to include.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | juicerio-js-embed-option-2917520-2.patch | 2.09 KB | jojonaloha |
Comments
Comment #2
jojonaloha commentedAttached patch adds the proposed option and includes the 3 options: the default one juicer shows when you copy the code from their website, the no-jquery one that the module currently uses (also remains the default if this variable is not set) and the new one for no-jquery-no-slick.
Comment #3
laughnanLooks good to me. Let me test it locally @jojonaloha and I'll get it merged into the 7.x branch.
Comment #4
laughnanThis patch worked successfully on my local 7x site.
Comment #6
laughnanComment #7
laughnanCreated a related issue for the 8.x branch to support alternative JS libraries: #2917855: Alternative JS Embeds for Drupal 8 Block Plugin