web-bugs icon indicating copy to clipboard operation
web-bugs copied to clipboard

downdetector.com - desktop site instead of mobile site

Open webcompat-bot opened this issue 10 years ago • 11 comments

URL: http://downdetector.com/ Browser / Version: Firefox 50.0 Operating System: Windows 7 Problem type: Desktop site instead of mobile site

Steps to Reproduce

  1. Navigate to: http://downdetector.com/
  2. Images for different service providers don't load
  3. Scroll down the page and they load.

Expected Behavior: Under Chrome browser images load and work from the start of page load.

Actual Behavior: Images do not load until scrolling.

From webcompat.com with ❤️

webcompat-bot avatar Jun 16 '16 05:06 webcompat-bot

I can reproduce this when using tracking protection. When using the basic protection setting the list does not appear, resizing the viewport makes the images appear. When using strict protection the images do not appear at all.

damagedgoods

adamopenweb avatar Jun 16 '16 09:06 adamopenweb

Unable to reproduce, the website uses lazyloading. The images loads as you start scrolling (but the first set of images start to load on window load)

tsl143 avatar Jun 16 '16 09:06 tsl143

Thanks @tsl143, you're right the image load on scrolling. But the images don't load on window load in Firefox 49 and 50, doesn't appear to be related to e10s.

So to recap:

  • In Firefox 47 unable to reproduce
  • In Firefox 49 & 50 the issue reproduces with tracking protection disabled or with basic tracking protection enabled - images don't load on window load
  • In Firefox 49 & 50 with strict tracking protection the issue does not reproduce
  • Prior to updating my Dev Edition to 49.0a2 (2016-06-15), the issue wasn't reproducible. After the images don't load on window load

adamopenweb avatar Jun 16 '16 10:06 adamopenweb

The jQuery Lazy Load plugins skips images that are invisible per default. Since the script gets executed in Firefox before the image tags are rendered, these are simply skipped. One solution is to disable that behavior:

8333c8333,8335
<       $("img.lazy").lazyload();
---
>       $("img.lazy").lazyload({
>         skip_invisible: false
>       });

(from the inline script)

However, they've changed the default value to false in 1.9.5 because this was creating a lot of trouble, so updating the library will help as well.

skyschub avatar Oct 20 '16 03:10 skyschub

I sent an email to [email protected] regarding this issue.

adamopenweb avatar Oct 20 '16 04:10 adamopenweb

Thank you for reporting this issue. I have created a ticket and development will look into it.

Tom Sanders downdetector.com

tsanders42 avatar Oct 20 '16 11:10 tsanders42

We updated LazyLoad.js and in our tests are no longer getting this issue. Again, thank you for brining this to our attention.

Tom Sanders downdetector.com

tsanders42 avatar Dec 08 '16 09:12 tsanders42

Thanks for the update @tsanders42. I'm still able to reproduce the issue in Firefox 50 for OSX. Maybe @denschub can test as well?

down

adamopenweb avatar Dec 08 '16 19:12 adamopenweb

@tsanders42 the issue is still there for me and https://cdn.downdetector.com/static/javascript/jquery.lazyload.min.js has a "1.9.1" comment in it. Are your changes not yet deployed?

skyschub avatar Dec 08 '16 19:12 skyschub

Must be caching... I've purged our CDN once more. https://cdn.downdetector.com/static/javascript/jquery.lazyload.min.js?foobar shows 1.9.7 I would expect it to be a matter of time then

tsanders42 avatar Dec 08 '16 19:12 tsanders42

Thanks! Tested and it is working.

adamopenweb avatar Dec 08 '16 20:12 adamopenweb