Comments (7)
Thanks @pikeas I will take a look
from generator-react-webpack.
Seems like I cannot reproduce this, has anyone else seen this behaviour?
from generator-react-webpack.
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.
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.
+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.
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.
@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)
- Running the generator throws error on expected promise object at the beginning of execution
- NPM Run Dist won't copy over all image assets
- SyntaxError: Unexpected token: name (path) [./cfg/base.js:2,0] when running dist
- Optionally use HtmlWebpackPlugin
- Static files
- how to add postCss plugin,please tell me details of it
- Redux link in README.md seems incorrect
- Hot reloader not working. HOT 1
- Setup Issue
- Generate A Container?
- Cannot read property 'apply' of undefined
- Missing node modules when deploying to Heroku HOT 1
- impossible to use any node package added
- How can I set webpack proxy in cfg/base.js
- When you choose Scss in the installation - all generated files are .css
- install warn HOT 1
- "Uncaught SyntaxError: Unexpected token <" on Production Server
- React Version is Old
- Error trying to run npm run dist
- How can auto open the browser?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from generator-react-webpack.