GithubHelp home page GithubHelp logo

Comments (4)

riderx avatar riderx commented on May 28, 2024 1

yes it was rocket loader

from starlight.

delucis avatar delucis commented on May 28, 2024

Do you have Cloudflare’s “Rocket Loader” feature enabled? We’ve seen issues in the past with that because for some reason it prevents events firing on page load (which is when the search code executes).

Edit: I can confirm you do looking at the Network panel in dev tools:

table row showing a rocket-loader.min.js file being loaded on the capgo.app website

I’d recommend disabling that! It’s usually of little benefit in Starlight sites and like to cause issues.

from starlight.

rishi-raj-jain avatar rishi-raj-jain commented on May 28, 2024

My observations:

  1. Something is defeinitely weird with CF Rocket Loader because as I block it to test the website without, it just doesn't load ANY JS
    image

  2. the cloudflare rocket loader mode is adding type="module" to all the script tags and they're being only by CF script, and don't load with CF scripts at all. and this all "optimization" is happening after you've deployed meaning we don't have control over it other than disabling it 😅 unless you'd wanna SSR but that just defeats the whole purpose of it.

from starlight.

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.