I am Trying to create module with swiper in EDS. HTML part i have done. But adding Custom Java script for the module and Swiper library is triggering error. Can anyone guide me how to add swiper and custom JS for my module in Edge Delivery service.
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @mohamedvalith In EDS you can load any script, but the loading of the script will impact your Lighthouse if it is not loaded properly.
So, the ideal way to load the script will be withing the section i.e. loadDelayed, so that there is no blocking time for the LCP data.
Please refer to the github boilerplate https://github.com/adobe/aem-boilerplate/blob/main/scripts/scripts.js
Thanks
Views
Replies
Total Likes
Hi @mohamedvalith In EDS you can load any script, but the loading of the script will impact your Lighthouse if it is not loaded properly.
So, the ideal way to load the script will be withing the section i.e. loadDelayed, so that there is no blocking time for the LCP data.
Please refer to the github boilerplate https://github.com/adobe/aem-boilerplate/blob/main/scripts/scripts.js
Thanks
Views
Replies
Total Likes
Thank you ShaileshBassi. It is very helpful and your suggestion working fine.
Views
Replies
Total Likes
Views
Likes
Replies