webp_image plugin help
Posted: Thu Nov 30, 2023 10:32 am
Hello all,
We are using LISE to display resources on a page. There are a lot of resources so we ended up using javascript fetch to load the resources after the page is loaded:
<__script__>
document.addEventListener('DOMContentLoaded', function() {
let url = '{cms_selflink page="$page_alias" urlonly="true"}?mact=LISEResources,cntnt01,default,0&showtemplate=false'
fetch(url)
…
</__script>
Each resource has an image so we are using the webp_image plugin to reduce the image file size. The odd thing is that the plugin doesn't execute on the page (when loaded via fetch) but it does when you visit the url itself. Is there a way to execute the plugin when using fetch?
Thanks in advance for your help.
James
We are using LISE to display resources on a page. There are a lot of resources so we ended up using javascript fetch to load the resources after the page is loaded:
<__script__>
document.addEventListener('DOMContentLoaded', function() {
let url = '{cms_selflink page="$page_alias" urlonly="true"}?mact=LISEResources,cntnt01,default,0&showtemplate=false'
fetch(url)
…
</__script>
Each resource has an image so we are using the webp_image plugin to reduce the image file size. The odd thing is that the plugin doesn't execute on the page (when loaded via fetch) but it does when you visit the url itself. Is there a way to execute the plugin when using fetch?
Thanks in advance for your help.
James