Browser freeze with esm modules, carousel type, and empty images
See original GitHub issueFirst off - thanks for an excellent, lightweight library!
I’ve been using this in my project for a while, and I have a lot of dynamic carousels which pull images in based on some data.
What I’ve found seems pretty severe, and that is - if a carousel has no slides, and it is of type carousel
, it immediately causes the browser to use 110% CPU, freezing the tab (or often, the entire machine) up.
This happens on both Chrome and Firefox but I’d recommend running the recreation (attached) in firefox since chrome is really hard to kill once it gets stuck!
I created a recreation of the problem here:
https://github.com/beyonk-adventures/glide-empty-carousel-bug - check it out and use npm run dev
Cheers
Issue Analytics
- State:
- Created 4 years ago
- Reactions:10
- Comments:14
Top Results From Across the Web
Module not found: Error: Can't resolve 'core-js/es6'
import "core-js/modules/es.object.freeze.js";. If such an import statement is inserted into a file which does not reside in a package which has ...
Read more >Slick.js carousel - image slides randomly freezing? - SitePoint
I am trying to keep the images repeating. It works for some time but randomly stops at one of the browser pages. But...
Read more >All you need to know to move from CommonJS to ECMAScript ...
Enabling ECMAScript modules (ESM) in Node.js; Syntax; Strict by default; Browser compatibility; ESM is missing some references ...
Read more >Swiper Changelog
core: fix slider freeze with enabled observer (8ff2691), closes #5414 ... Improved es module "tree-shake-ability"; New swiper.esm.browser.bundle.js package ...
Read more >webpack referenceerror: module is not defined in es module scope ...
If I add "type": "module" to package.json I get [webpack-cli] ... 0) at async ESMLoader.import (node:internal/modules/esm/loader:281:24) at async loadESM ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This isn’t fixed after running ‘yarn add @glidejs/glide’ Can the fix for this very severe bug be pushed to registry ASAP?
still occuring in 2021, was thinking that it was the bundling i did, but the freezing was simply because i had removed an content element in the backend which then lead to my typescript code not working.