scaleflex / js-cloudimage-responsive

Cloudimage Responsive will smartly resize, compress and accelerate images across the World in your site for all devices. The plugin supports lazy loading technique with fancy animation on image load. Any questions or issues, please report to https://github.com/scaleflex/js-cloudimage-responsive/issues
Other
68 stars 15 forks source link

Missing origin image #39

Open JimRou opened 3 months ago

JimRou commented 3 months ago

Hello,

I wanted to test the js cloudimage responsive script for a part of my web site (femto-physique.fr/optique). So for all the page I put in the head :

<link rel="stylesheet" href="https://cdn.scaleflex.it/plugins/js-cloudimage-responsive/latest/js-cloudimage-responsive.min.css?vh=a076ef&func=proxy"></link>

and before the </body> i put

<script src="https://cdn.scaleflex.it/filerobot/js-cloudimage-responsive/lazysizes.min.js"></script>
<script src="https://cdn.scaleflex.it/plugins/js-cloudimage-responsive/latest/js-cloudimage-responsive.min.js"></script>
<script>
    const ciResponsive = new window.CIResponsive({
        token: 'mytoken',
        baseURL: 'https://femto-physique.fr/optique/img/', // optional
        lazyLoading: true                                       // optional
    });

    window.lazySizes.init();
</script>

where i change mytoken to my personnal token And for the png image i change src to ci-src

.... but it doesn't work as you can see here (see Fig.10). Could you tell me where is my mystake ?

Thank you J. Roussel