Code Monkey home page Code Monkey logo

Comments (7)

newtriks avatar newtriks commented on June 30, 2024

Thanks @pikeas I will take a look

from generator-react-webpack.

newtriks avatar newtriks commented on June 30, 2024

Seems like I cannot reproduce this, has anyone else seen this behaviour?

from generator-react-webpack.

scpeterson avatar scpeterson commented on June 30, 2024

I see it as well. If I follow the instructions here: http://newtriks.com/2013/12/31/automating-react-with-yeoman-and-grunt/, but on a Windows PC using Chrome, I sometimes quickly see the message from index.html: If "you can see this, something is broken (or JS is not enabled)!!" It usually happens the first time I run grunt serve on a new project.

from generator-react-webpack.

pikeas avatar pikeas commented on June 30, 2024

Occurred for me (original poster) on latest OSX/Chrome. Typical FOUC - white background + "if you can see this" text on-screen for a moment before the rest of the content loads.

from generator-react-webpack.

KingScooty avatar KingScooty commented on June 30, 2024

+1 - Chrome 40 on Yosemite.

Getting a flash of the 'JS isn't enabled message' before the everything loads in. I know the JS is supposed to be none blocking, but not loading the styles in causes a white background flash.

from generator-react-webpack.

ColCh avatar ColCh commented on June 30, 2024

It's needed to extract CSS into separate file: see extract-text-webpack-plugin (and possibly, serverside rendering). Yup that's very important thing on production builds, but do we really need to refuse CSS Hot Load in favor of FOUC fix?

from generator-react-webpack.

newtriks avatar newtriks commented on June 30, 2024

@ColCh agreed. I think this maybe out of scope of the generator but welcome comments here or links for people to overcome this issue on production builds? Gonna close for now unless someone has a better solution that doesn't compromise dev builds....

from generator-react-webpack.

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.