No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Upgrading to Quasar 2 breaks PreloadWebpackPlugin?

    Framework
    2
    3
    193
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      ajmas last edited by ajmas

      Prior to Quasar 2 we have been using @vue/preload-webpack-plugin to have our resources preloaded, but it would seem that the htmlWebpackPlugin is no longer part of Quasar.

      This plugin had resolved the issue of partially loaded chunks and dependencies when uses an SPA in a situation with poor internet connectivity. We did not find that preloadChunks was sufficient to deal with this in the past.

      Can anyone suggest an alternative approach to having the preload attribute added against loaded resources, or at the very least ensure all resources are loaded up front?

      Environment:

      • NodeJS: 14.15.1
      • @vue/preload-webpack-plugin: 1.1.2
      • @quasar/app: 2.1.14
      1 Reply Last reply Reply Quote 0
      • Hawkeye64
        Hawkeye64 last edited by

        @ajmas Read this (hopefully it will solve your issue): https://webpack.js.org/guides/code-splitting/#prefetchingpreloading-modules

        1 Reply Last reply Reply Quote 0
        • Hawkeye64
          Hawkeye64 last edited by

          and one more: https://web.dev/preload-critical-assets/#preloading-javascript-modules-with-webpack

          1 Reply Last reply Reply Quote 0
          • First post
            Last post