-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
www.espressoparts.com - items are not rendered as expected #67436
Comments
We appreciate your report. I was able to reproduce the issue. The site is not rendered as expected. Tested with: Notes:
Moving this to NeedsDiagnosis for further investigations. |
I can't reproduce on RDM. Let's see on the device ah yes I can reproduce there strange. This is the markup when the image is received. <div
class="slideshow__slide-inner slideshow__slide-inner--middle-center image--fade-in lazyloaded"
data-bgset="//cdn.shopify.com/s/files/1/0511/8282/9755/files/Mobile_800_x_720-01_600x720_crop_center.png?v=1612557187 [--phone] | //cdn.shopify.com/s/files/1/0511/8282/9755/files/Free-Ship-banner_1_800x.png?v=1612409819 800w, //cdn.shopify.com/s/files/1/0511/8282/9755/files/Free-Ship-banner_1_1000x.png?v=1612409819 1000w, //cdn.shopify.com/s/files/1/0511/8282/9755/files/Free-Ship-banner_1_1200x.png?v=1612409819 1200w, //cdn.shopify.com/s/files/1/0511/8282/9755/files/Free-Ship-banner_1_1400x.png?v=1612409819 1400w, //cdn.shopify.com/s/files/1/0511/8282/9755/files/Free-Ship-banner_1_1600x.png?v=1612409819 1600w, //cdn.shopify.com/s/files/1/0511/8282/9755/files/Free-Ship-banner_1_1800x.png?v=1612409819 1800w"
data-optimumx="1.4"
style="
background-image: url('https://cdn.shopify.com/s/files/1/0511/8282/9755/files/Mobile_800_x_720-01_600x720_crop_center.png?v=1612557187');
"
>
<picture style="display: none"
><source
data-srcset="//cdn.shopify.com/s/files/1/0511/8282/9755/files/Mobile_800_x_720-01_600x720_crop_center.png?v=1612557187"
media="(max-width: 640px)"
sizes="411px"
srcset="
//cdn.shopify.com/s/files/1/0511/8282/9755/files/Mobile_800_x_720-01_600x720_crop_center.png?v=1612557187
" />
<source
data-srcset="//cdn.shopify.com/s/files/1/0511/8282/9755/files/Free-Ship-banner_1_800x.png?v=1612409819 800w"
sizes="411px"
srcset="
//cdn.shopify.com/s/files/1/0511/8282/9755/files/Free-Ship-banner_1_800x.png?v=1612409819 800w
" />
<img
alt=""
class="lazyautosizes lazyloaded ls-is-cached"
data-sizes="auto"
data-optimumx="1.4"
data-parent-fit="cover"
data-srcset=""
sizes="411px"
/></picture>
</div> The important part is the This part is not happening for Firefox on Android. h = function (e) {
if (e.target._lazybgset) {
var t = e.target,
n = t._lazybgset,
s = t.currentSrc || t.src;
if (s) {
var o = i.fire(n, 'bgsetproxy', {
src: s,
useSrc: l.test(s) ? JSON.stringify(s) : s
});
o.defaultPrevented || (n.style.backgroundImage = 'url(' + o.detail.useSrc + ')')
}
t._lazybgsetLoading && (i.fire(n, '_lazyloaded', {
}, !1, !0), delete t._lazybgsetLoading)
}
}; but I can't manage to have the debugger to break for now. |
I just noticed also the shopify library had an issue too with the code if (
!(
navigator.connection &&
(navigator.connection.saveData ||
navigator.connection.effectiveType.includes("2g"))
)
) {
if ("viewport" == tt) {
if (
document.documentElement.clientWidth *
document.documentElement.clientHeight <
450000
) {
/** @type {boolean} */
et = true;
}
} else {
if ("viewport-all" == tt) {
/** @type {boolean} */
et = true;
}
}
} This will fail But that still doesn't my issue with images. Because it fails identically on desktop rdm with mobile UA, but images are being displayed. |
In this situation, the script will stop running and jump to any Since the issue doesn't seem to be reproducible in the RDM, that leaves us without DitM to be able to easily test this. It might be possible to use Tinker Tester Developer Spy, using its console API (although though I have not used that for a while, so the documentation may even be out of date), or a proxy like Charles to redirect to a local copy of the script served from another server. Aside from that, we usually have one further option: creating our own local build of Android Firefox (an artifact build is usually fine), with a test intervention in the webcompat addon, and see if the problem goes away on that build. I will take a closer look to see what what ends up being useful here. |
Hey @lmandel, This is an issue with Shopify theming JS. We are not fully sure yet if it will solve the issue for this site, but at least it's definitely an error that have consequences for this piece of code. Do you know who we should contact at @Shopify Thanks. |
Ah @lmandel Mozilla might be able to fix it on Firefox side. Currently Safari is failing gracefully because But on Firefox Android, the browser is sending a half defined |
Close as duplicate of https://bugzilla.mozilla.org/show_bug.cgi?id=1637922 |
As yet another confirmation that it was the issue. |
URL: https://www.espressoparts.com/
Browser / Version: Firefox Mobile 86.0
Operating System: Android 10
Tested Another Browser: Yes Chrome
Problem type: Design is broken
Description: Images not loaded
Steps to Reproduce:
No images in Firefox, site rendered correctly in chrome
View the screenshot
Browser Configuration
View console log messages
From webcompat.com with ❤️
The text was updated successfully, but these errors were encountered: