Code Monkey home page Code Monkey logo

Comments (4)

major avatar major commented on August 15, 2024

My current set of params: https://github.com/major/major.io/blob/main/config/_default/params.toml

from congo.

major avatar major commented on August 15, 2024

Ah, I figured out what it was! It's Cloudflare's Rocket Loader feature. It shortens the time for a content paint with javascript, but I think it was causing something to be loaded out of order with the appearance toggle.

To fix it, one must go into Cloudflare's dashboard and:

  • Click the website where they deployed Hugo/Congo
  • Click Speed on the left bar
  • Click Optimization in the Speed section
  • Scroll to Rocket Loaderβ„’ and turn it off
  • Clearing cache may be necessary, but it wasn't needed for me

I doubt there's a bug with Congo here, but I'd be glad to write a little warning in the Congo docs about it if someone might find it useful. πŸ˜‰

from congo.

jpanther avatar jpanther commented on August 15, 2024

Thanks for the report. I've never tried deploying a Hugo site to Cloudflare Pages. If you feel like adding some documentation to the Hosting and Deployment page that explains how to deploy a site (and include a comment about this Rocket Loader issue) that would definitely be something that could help others. Feel free to submit a PR. In the meantime I'll close off this issue as I don't think anything needs to be changed in the theme.

from congo.

major avatar major commented on August 15, 2024

@jpanther I'll do that. Thank you.

from congo.

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.