Git Product home page Git Product logo

child-compiler-loader-list-webpack-plugin-example's Introduction

child-compiler-loader-list-webpack-plugin-example

This is an example for child-compiler-loader-list-webpack-plugin, a plugin originally written to help stitch together building a static html file with html-webpack-plugin and extract-text-webpack-plugin. The issue was extract-text-webpack-plugin will error if any files it extracts are referred directly or indirectly from the template html-webpack-plugin since that template can be generated by javascript that can just run the application to build what the application would first build when viewed by a user.

The benefit of that process is gained by slow connections like mobile networks that take a while to load a large JS file. Building the static page and baking in the initial dom that js file would generate can let the browser load assets and render them in parallel with loading the script. To that end this example uses large images and an arbitrarily large script to help demonstrate the benefit. It'll be most noticable to open the built pages in a browser with its developer tools open to disable caching and throttle the connection to a slower speed. The baked page will download the images and render the first while the large JS file finishes loading. The unbaked page, not containing that initial DOM setup, will have to finish loading the JS file before being able to render the page, let alone load the image.

child-compiler-loader-list-webpack-plugin-example's People

Contributors

mzgoddard avatar

Watchers

 avatar  avatar

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.