cc-archive/open-ledger

Facetted search appears to pull blank screen on mobile

Closed this issue · 3 comments

img_1789
img_1790

Regular search works fine, but facets appear to make the page blank. Using IPhone 5 + Safari. Also checked on Chrome and Safari on desktop and appears to be functioning.

pa-w commented
  • Try to reproduce (this seems to be a mobile only issue). Maybe CSS?
    Was able reproduce on Chrome in responsive mode... I suspect it has to do with imagesloaded behavior on mobile or we might be misidentifying mobile browsers as IE?
    Relevant code here.
  • Test locally and in staging
  • Deploy!
pa-w commented

So, apparently imagesloaded is the responsible and maybe it doesn't help that we use it once the DOM has loaded BUT I am going to try to wait until window.load has triggered to perform the checks.

Here is, I think, imagesloaded bug that is causing this. Note that there is a question regarding minifying code (which we do) desandro/imagesloaded#156

pa-w commented

So, it worked! changing the event to window.load instead of DOMDocumentLoad fixed most of the issues.

Fixed in a78d747