Giter Site home page Giter Site logo

Slow loading on demo app about 3ree HOT 3 CLOSED

gordyd avatar gordyd commented on May 2, 2024
Slow loading on demo app

from 3ree.

Comments (3)

GordyD avatar GordyD commented on May 2, 2024

Hi @reddhouse,

Thanks for flagging this.

So the issue here is that the CSS is loaded inline with the Javascript payload (it is contained within bundle.js) in the version deployed. Because Webpack is not instructed to break out CSS dependencies into separate payloads this means that it is served just like the JS, asynchronously, which explains the page showing the unstyled content initially.

The current version of 3ree addresses this though so I'll need to update the deployed version which I'll do later today, then the CSS will be loaded synchronously and you won't see an unstyled version of the app.

For clarity though this issue is resolved by using the ExtractTextPlugin and updating webpack.config.js to optionally use this plugin for bundling CSS when building for non-development environments. See here

from 3ree.

reddhouse avatar reddhouse commented on May 2, 2024

Ah, good to know there is a solution to this. I'll keep an eye out for the refreshed UI on the demo site.

from 3ree.

GordyD avatar GordyD commented on May 2, 2024

FYI I have just deployed an updated version!

from 3ree.

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.