Skip to content

Flashing of unstyled HTML in extract-text-webpack-plugin, reconsider setting allChunks: true? #2415

Closed

Description

@lawlmart

Although setting allChunks: false in the configuration of extract-text-webpack-plugin increases the initial page load, it has the consequence of flashing unstyled HTML as the user moves between uncached chunks, since the page renders before addStyles can do its magic. So far it's been the only customization I need and I'd love to not have to eject.

This was originally discussed in #408 but the unstyled flashing wasn't mentioned which I feel is a dealbreaker. If this isn't up for continued debate than you can just close it.

Activity

  1. Timer commented on Jun 6, 2017

    @Timer
    Contributor

    We currently don't have the time to look into this, but I'll tag it for later review. Thanks!

  2. added this to the milestone on Jun 6, 2017
  3. gaearon commented on Jun 6, 2017

    @gaearon
    Contributor

    I didn't know this was a problem. Is this a known issue in webpack? Is it even possible to fix?

    I'm okay with allChunks: true I guess.

  4. gaearon commented on Jun 22, 2017

    @gaearon
    Contributor

    Can you provide a project reproducing this?

  5. modified the milestones: , on Sep 8, 2017
  6. lawlmart commented on Sep 26, 2017

    @lawlmart
    Author

    It sounds like this has been reproduced and the consensus is to set allChunks: true. I’d love to see this fixed soon, would you accept a PR?

  7. rt2zz commented on Dec 12, 2017

    @rt2zz

    currently doing this via patch package. I feel this is an opinionated solve but not sure any practical alternatives exist? At the very least this is a big gotcha for code splitting with CRA

  8. mhluska commented on Dec 16, 2017

    @mhluska

    What's the status on this one? I'm experiencing this issue as well. Edit: nevermind, this issue only exists for me in dev because of style-loader. In prod, ExtractTextPlugin fixes it.

  9. gaearon commented on Jan 8, 2018

    @gaearon
    Contributor

    I don't know. Is there a pull request from somebody affected that fixes it?

  10. bugzpodder commented on May 31, 2018

    @bugzpodder

    Hey guys, this should be fixed with the mini-css-extract-plugin which we've added as part of webpack 4 in the next branch. I don't believe there will be any more releases for CRA 1.x. Please test the CRA2 release if possible, and open a new issue if you see something wrong.

  11. locked and limited conversation to collaborators on Jan 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions