laravel-page-speed
laravel-page-speed copied to clipboard
DeferJavascript causes "Uncaught ReferenceError: GLightbox is not defined"
As soon as I use the middleware "\RenatoMarinho\LaravelPageSpeed\Middleware\DeferJavascript::class," I got this error: "Uncaught ReferenceError: GLightbox is not defined" As soon as I remove it, the error also is gone.
<script type=text/javascript> const lightbox = GLightbox({ touchNavigation: true, loop: false, closeEffect: 'fade' });
How can I fix that?
same issue.