preload-webpack-plugin icon indicating copy to clipboard operation
preload-webpack-plugin copied to clipboard

Is there any way to prefetch resource after page loaded?

Open arika163 opened this issue 3 years ago • 0 comments

    /* config.plugin('preload') */
    new PreloadPlugin(
      {
        rel: 'preload',
        include: 'initial',
        fileBlacklist: [
          /\.map$/,
          /hot-update\.js$/
        ]
      }
    ),
    /* config.plugin('prefetch') */
    new PreloadPlugin(
      {
        rel: 'prefetch',
        include: 'asyncChunks'
      }
    )

These settings start download prefetch async chunks when preload chunk-venders is still downloading.I think this can damage the first screen performance.Is there any way to prefetch resource after page loaded?

arika163 avatar Jul 21 '22 11:07 arika163