I'm currently using Glide.js v3.6.0 in my project, and I have encountered an issue with Google Lighthouse reporting the following warning:
"Avoid old JavaScript in modern browsers"
The warning appears to be triggered by the ES5-compatible class syntax present in the glide.min.js distribution file. Since modern browsers can handle ES6+ code more efficiently, having ES5 syntax can negatively impact performance.
Steps to Reproduce
Include glide.min.js v3.6.0 in your project.
Run a Google Lighthouse audit on the page that includes Glide.js.
Observe the warning regarding old JavaScript.
Expected Behavior
Lighthouse should not flag Glide.js as using old JavaScript syntax when running audits for modern browsers.
Current Behavior
Lighthouse reports a warning due to the presence of ES5-compatible class syntax in the /dist/glide.min.js file.
Possible Solution
To resolve this, it would be beneficial to provide a distribution build of Glide.js that targets ES6+ environments.
Description
I'm currently using Glide.js v3.6.0 in my project, and I have encountered an issue with Google Lighthouse reporting the following warning:
"Avoid old JavaScript in modern browsers"
The warning appears to be triggered by the ES5-compatible class syntax present in the
glide.min.js
distribution file. Since modern browsers can handle ES6+ code more efficiently, having ES5 syntax can negatively impact performance.Steps to Reproduce
glide.min.js
v3.6.0 in your project.Expected Behavior
Lighthouse should not flag Glide.js as using old JavaScript syntax when running audits for modern browsers.
Current Behavior
Lighthouse reports a warning due to the presence of ES5-compatible class syntax in the
/dist/glide.min.js
file.Possible Solution
To resolve this, it would be beneficial to provide a distribution build of Glide.js that targets ES6+ environments.