Comments (13)
Ok, sorry about that. I'll keep swinging...
from gallery-card.
This should be much improved if not fixed by the improvements in v3.4.
from gallery-card.
Great find. Thanks!
from gallery-card.
In Edge browser everything works. Weird as it is also Chromium.
Chrome version: 96.0.4664.45 (Official Build) (64-bit)
Edge version: 96.0.1054.34 (Official build) (64-bit)
from gallery-card.
I think this worked better before implementing that lazy load, so I have reverted that change in v3.3, just released.
from gallery-card.
Sorry to say.... it behaves exactly the same.
from gallery-card.
Hrm, are you sure you're running the new version and not from cache? Worth a check...
Full disclosure, mine still isn't perfect, but it's gone from maybe 50% to 80% of the time it loads. I'll reopen so I can take another look at it.
from gallery-card.
I'm sure. Updated, checked js and js.gz fiiles date, used Empty cache and hard reload. :(
Here is the current state in Chrome:
There are no errors in Console
from gallery-card.
Hej...
Will this help. I noticed in network log loads of canceled requests for media files:
from gallery-card.
Hrm, definitely interesting. Thanks!
Not sure why they would be cancelled, especially when just from one browser (which rules out your HA server). But another avenue to research.
from gallery-card.
Its the same in Edge. But Endge renders everithing. But same cancelations are there also. Hm...
And iOS, Android apps also renders all.
from gallery-card.
Can you try the update I just uploaded (v3.3.1) and see if it works better for you?
I can't get it to fail at the moment...but could be the way the wind is blowing...
from gallery-card.
For future reference, Chrome has a fixed/non-configurable limit of six concurrent connections to a given HTTP 1.1 host (based on what I see, HA is HTTP1.1) - so any page showing more than six <img />
(or other media) tags will block loading of the additional images until one of the prior requests completes.
The longer each request takes to complete, the greater the impact -- so the backend HA server's performance is also a critical factor. For example, multiple users/browsers hitting the same application page likely worsens the problem.
EDIT: In my experience, this issue may lead to browser "freezing" and/or page crashes on certain platform / version combinations.
EDIT: may be related to #68
I find Chrome's limit interferes with web pages that try to show more than a few "live" updating thumbnails/images using multiple <img />
/media tags (for example, similar problems reported with ZoneMinder's montage views on Chrome)
Apparently Firefox and some other browsers are more forgiving and/or may be tweaked to support higher limits. My go-to workaround is to use one of the more forgiving browsers to view the page.
A proper fix (that ensures broad compatibility/stability) involves re-architecting the page/application to use fewer concurrent connections to the HTTP1.1 host.
References:
- https://support.google.com/chrome/a/answer/3339263?hl=en
- https://superuser.com/a/576588/150320 (and similar)
from gallery-card.
Related Issues (20)
- Feature Request: Fixed card size HOT 5
- Maximum Files and Parsed_Date_Sort Not Working Properly Together HOT 1
- Go to next slide or video after video has finished. HOT 1
- Autosize Photo HOT 1
- Chromium (thru raspberry pi) crashes when gallery-card is used in Lovelace UI.
- Masonry Layout ignored
- Add File Name Date Ends Parameter
- Images not picked up when used with Play Media to Tv via Google Cast HOT 4
- Log warnings: login attempt failed by using the card HOT 1
- failing when calling more than 70 images
- Download doesn't work. HOT 1
- Invalid date HOT 1
- Issues with Video mp4 files
- Feature request - Delete images function
- Hide left and right arrows HOT 1
- Feature Request - Remove Captions
- Image/Video tabs? HOT 3
- Files not sorting right at all HOT 1
- Feature Request
- Stopped working HOT 26
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gallery-card.