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.
해결되었습니다! 솔루션으로 이동.
토픽은 커뮤니티 콘텐츠를 분류하여 관련성 있는 콘텐츠를 찾는 데 도움이 됩니다.
조회 수
답글
좋아요 수
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
조회 수
답글
좋아요 수
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
조회 수
답글
좋아요 수
Thank you ShaileshBassi. It is very helpful and your suggestion working fine.
조회 수
답글
좋아요 수
first you can direct put script to head or you can load that at a time of block load
조회 수
답글
좋아요 수