Compiled assets/app.js file found but not used errors

What is the name of the domain?

What is the error number?

N/A

What is the error message?

Multiple (see below)

What is the issue you’re encountering

Errors in the console

What are the steps to reproduce the issue?

Visit https://docs.lightningautofill.com/ in Chrome and you should see this error:

A preload for 'https://docs.lightningautofill.com/assets/app.<hash>.js' is found, but is not used because the request credentials mode does not match. Consider taking a look at crossorigin attribute.

Visit the same site in Firefox and sometimes this error appears:

The resource https://docs.lightningautofill.com/assets/app.<hash>.js was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate as value and it is preloaded intentionally.

This site uses vitepress v1.6.3. I was not able to reproduce this on the local dev server or on https://vitepress.new, so it appears it might be related to Cloudflare Pages deployment, specifically with Rocket Loader.

After researching the issue, someone suggested disabling Rocket Loader because it could be conflicting with vitepress’ performance optimizer, but before I try that I’m wondering if there’s a less drastic solution, like maybe configuring a _headers file.

Screenshot of the error

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.