'How to use lodash or any other JavaScript package inside Dittofi?
How to use lodash (https://lodash.com/) or any other JavaScript package inside Dittofi?
Solution 1:[1]
Copy the lodash CDN from here
In the Dittofi front-end builder, go to the Home Page settings ("Edit Page Settings"). In there you will see an option to add "Custom code" (it's the last option).
Since lodash is JavaScript, you will need to add a script tag with the cdn as the src attribute in the "Before tag" section and hit Save.
I.e., in the "Before tag" section, put in <script src="https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js"></script> and save.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Nelly Sugu |
