• Resolved JacobTheDev

    (@revxx14)


    When running a Lighthouse test locally (Windows 11 via Powershell, Lighthouse 12.4.0), Lighthouse crashes when “Speculative Loading” is enabled. This seems to be a recent issue, as I’ve been running Lighthouse tests against sites with this plugin enabled for many months with no issues. I’m not sure what changed or when, but the last few sites I’ve enabled this plugin on (the last month or so) have had this issue.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Weston Ruter

    (@westonruter)

    I don’t see the Speculative Loading plugin active on your site. Did you deactivate it?

    What settings in the plugin were you using when doing Lighthouse tests? Were you using prefetch or prerender? Which eagerness setting?

    In any case, the issue isn’t going to be a bug with the Speculative Loading plugin since it just outputs the speculationrules script which the browser reads to execute the speculative loads. So it would be a browser bug.

    Does this happen with any other sites that make use of the speculation rules API? If you can create a basic test page (e.g. a static HTML page) which has the <script type="speculationrules"> script tag on it which causes the Lighthouse crash then this would be very helpful to have an isolated test case to submit as part of a bug report either to Chrome or Lighthouse.

    This is a known issue @revxx14 ever since WP started adding the spec rule to core. But only now is crashing Lighthouse. You can see a thread on Reddit here discussing it. I built a plugin to bypass this issue for now until there’s a fix from Chrome. This isn’t related to @westonruter plugin.

    Thread Starter JacobTheDev

    (@revxx14)

    Ah, thanks Stef, I’ll check that out!

    Plugin Support tunetheweb

    (@tunetheweb)

    FYI, I think this will be fixed in the next version of Lighthouse (12.6?) and which should be included in Chrome 137:
    https://github.com/GoogleChrome/lighthouse/pull/16451

    Hey @tunetheweb That would be nice. I’ve been talking with that team all week. It’s been pretty hilarious to say the least. Someone just wrote me back 2 hours ago and had no idea where they were at in the thread. They weren’t even aware of the issue until I said something to them 2 weeks ago.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Lighthouse crashes with Speculative Loading enabled’ is closed to new replies.