Git Product home page Git Product logo

Comments (10)

silvasur avatar silvasur commented on August 18, 2024 1

I have a similar (same?) issue, the page https://developer.mozilla.org/en-US is visible for a brief moment but then turns blank. The JS console showed something about updating and there was an error that sendBeacon didn't work. After I've switched on beacons by setting beacon.enabled to true in Firefox' about:config, it worked again. After then switching beacons off again, MDN continued to work. I have MDN plus, maybe that's relevant? Sorry, I don't have the exact error messages any more, but maybe that's useful nonetheless?

from yari.

LeoMcA avatar LeoMcA commented on August 18, 2024 1

Yep, that'll be it: we're trying to call sendBeacon when it's undefined. I thought Babel would ensure we conditionally call it for older browsers anyway, I had no idea it was possible to toggle it on/off through browser config.

PR incoming, but if you hit this again before we deploy, clear your auth-cookie to log off (or open MDN in a different container tab where you're not logged in) and the site will be usable.

from yari.

caugner avatar caugner commented on August 18, 2024 1

Resolved via #8089, which will land in about 6h.

from yari.

nschonni avatar nschonni commented on August 18, 2024

Funnily, it does partially render in the Response preview window
image

from yari.

Josh-Cena avatar Josh-Cena commented on August 18, 2024

Can't reproduce on my macOS Firefox 108.0.2 or Chrome 108.0.5359.124. But anyway it should be a platform issue

from yari.

nschonni avatar nschonni commented on August 18, 2024

Yeah, not seeing it on my PC. I'll try again later on the Mac to see if there is something that got cache poisoned, but it wasn't clearing with a hard refresh before

from yari.

nschonni avatar nschonni commented on August 18, 2024

went to look something up again on the mac again today and was still setting this with FF 109.

From the console

Content Security Policy: The page’s settings blocked the loading of a resource at data: (“media-src”).
TypeError: navigator.sendBeacon is not a function
    v hooks.ts:153
    React 3
    _ scheduler.production.min.js:13
    N scheduler.production.min.js:14
    4034 scheduler.production.min.js:14
    Webpack 12
react-dom.production.min.js:189:29
Uncaught TypeError: navigator.sendBeacon is not a function
    v hooks.ts:153
    React 3
    _ scheduler.production.min.js:13
    N scheduler.production.min.js:14
    4034 scheduler.production.min.js:14
    Webpack 12
hooks.ts:153:16
    v hooks.ts:153
    React 3
    _ scheduler.production.min.js:13
    N scheduler.production.min.js:14
    (Async: EventHandlerNonNull)
    4034 scheduler.production.min.js:14
    Webpack 12

from yari.

nschonni avatar nschonni commented on August 18, 2024

Interesting note, that when I disabled JavaScript on the page, everything renders correctly, but when JS is allowed, it appears that React is blowing again the content and falling on its face

from yari.

caugner avatar caugner commented on August 18, 2024

@LeoMcA I cannot reproduce this, but the sendBeacon call was introduced by your PR in #7940. Would you have any theory what's happening here?

from yari.

silvasur avatar silvasur commented on August 18, 2024

Thanks! :)

from yari.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.