Not working with only srcset
See original GitHub issueHi there
I have a scenario where I have to use only srcset for images. The problem is, in this way it does not wait for the images to load and run the callback function. I did change the following line from the . js file as follows:
`// original code from js file this.proxyImage.src = this.img.src;
// I changed it as for srcset workout this.proxyImage.src = this.img.srcset;`
In this way it works like I want but it is making the double request for each image and throwing the error for 2nd img request.
How this can be fixed.
Regards, Shehzad Asif
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
responsive images srcset not working - Stack Overflow
Have you tried to change DPR to 1.0? You can find it in the top bar of Chrome DevTools in responsive mode (try...
Read more >srcset not working? Getting Wrong Images? Let's Find Out Why!
Sometimes, when srcset is not working and the browser is using the wrong image, it can be frustrating. This guide will help you...
Read more >Srcset not working in Chrome (but in Firefox and Safari)
I have setup a srcset rule which works fine in Firefox and Safari, but Chrome always downloads the original file. I noticed that...
Read more >picture srcset property is not working properly? - WordPress.org
it has to give the right image for 2k,4k,8k screen with min width of 1200px. it is showing only the fallback image. what...
Read more >srcset not working: always loads desktop version : r/HTML
if I'm on mobile, it doesn't load the hero-mobile.jpg. Fallback is never loaded: desktop version is always loaded. What's the problem? I tried ......
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 FreeTop 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
Top GitHub Comments
Thanks for the reply, I’ll check it (will take some time as now working of some project). If not worked in my situation, will get back to you.
On Sat, Jul 10, 2021 at 4:25 AM trevDev(); @.***> wrote:
Thanks for listening to us.
On Mon, Feb 21, 2022 at 10:53 PM David DeSandro @.***> wrote: