Giter VIP home page Giter VIP logo

ngx-preload-fonts's People

Contributors

bfoese avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ngx-preload-fonts's Issues

Support for Universal's prerender

Since Angular Universal's prerender generates many index.html (copied from the original); every single one will have the injection marker.

But only the base index.html files are scanned and got the injection marker replaced.

option to only preload woff2 fonts

Great library, good idea!

One thing that bugs me though: if the browser supports preload, it also supports .woff2 format. But if you add multiple filetype preloads to your index.html, your browser will preload them all, which ends up hurting you way more than not preloading at all as the browser is busy downloading stuff it doesn't need.

So I propose a new option defining which preferred fileformat should be preloaded if found, to yield better performance.

Building an Angular project with this module doesn't work with NodeJS V12

Used version: "@bfoese/ngx-preload-fonts": "1.0.0"

image

Hi. Since this package seems to work with NodeJS V14.x, it seems it cannot be used when building angular with NodeJS V12

image

The issue seems to be located with the use of "??" operator, which is included in a most recent version of ECMAScript that is not included in NodeJS V12

The easiest solution, in my opinion, should be to not use the ?? operator, even if it seems very simple and elegant.

Thanks for your help

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.