Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore support for async/dynamic chunk names (POC) #9

Closed
wants to merge 1 commit into from

Commits on Jan 23, 2017

  1. Add support for dynamic chunk names

    This POC adds support for preloading and prefetching JS chunks
    generated as part of code-splitting. Usage is as follows:
    
    // Preload dynamic chunks in the document <head>
    dynamicChunks: {
      preload: true
    }
    
    // Prefetch chunks on the document <head>
    dynamicChunks: {
      prefetch: true
    }
    
    // Preload chunks in the document <body>
    dynamicChunks: {
      preload: true,
      position: ‘body’
    }
    
    same goes for prefetch.
    addyosmani committed Jan 23, 2017
    Configuration menu
    Copy the full SHA
    7aa7baf View commit details
    Browse the repository at this point in the history