Coder Social home page Coder Social logo

Comments (5)

freddy38510 avatar freddy38510 commented on June 16, 2024 1

New options shouldPreload and shouldPrefetch documented here are available in the latest v3.3.0 release.

If you are concerned about performance, I can suggest you to use svg instead of web fonts for icons.
For fonts related to text, preloading too much of them can have a bad impact on performance.

For better optimization of fonts loading by playing with the font-display css property it can be better to use your own custom fonts.

from quasar-app-extension-ssg.

freddy38510 avatar freddy38510 commented on June 16, 2024

Hello,

@vue/preload-webpack-plugin is an extension plugin for html-webpack-plugin which is not involved when doing SSR. It is only for the SPA fallback file 404.html.

There is many ways to achieve what you want in particular with Quasar boot files or by using the onRouteRendered hook.

But you gave me the idea to add this as a new feature to this app extension. I think i will try to provide the same options than @vue/preload-webpack-plugin.

from quasar-app-extension-ssg.

freddy38510 avatar freddy38510 commented on June 16, 2024

@saike,

I'm working on it trying to re-implement the shouldPreload and shouldPrefetch methods to the SSR renderer.

This is almost done and should help you to preload font files.

from quasar-app-extension-ssg.

saike avatar saike commented on June 16, 2024

@freddy38510 great! thank you for your job. Waiting for updates

from quasar-app-extension-ssg.

saike avatar saike commented on June 16, 2024

@freddy38510 thank you for explanation. I will try new version soon

from quasar-app-extension-ssg.

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.