Giter VIP home page Giter VIP logo

Comments (3)

oliverfindl avatar oliverfindl commented on August 16, 2024

Po aktualizacii balicka a opatovnom vybuildovani CSS pomocou node-sass som zistil, ze sa v CSS nachadza definicia fontov 2x. Jedna je hned na zaciatku suboru a druha je na rovnakom mieste, ako je vo vybuildovanom CSS v tomto repozitari. Toto ma za nasledok stav, kedy browser vo vacsine pripadov requestne kazdy font 2x (ak sa mu medzicasom nevrati response z predchadzajuceho resourcu, ktory ostane nasledne v cache), co vo vysledku robi takmer 300 kB.

Priklad:

// app.scss

@charset "utf-8";

$idsk-assets-path: "/static/";

@import "./node_modules/@id-sk/frontend/idsk/all.scss";
$ npx node-sass app.scss app.css

from id-sk-frontend.

Kvaso1 avatar Kvaso1 commented on August 16, 2024

Opravene v release 2.8.0
https://github.com/id-sk/id-sk-frontend/releases/tag/2.8.0

from id-sk-frontend.

oliverfindl avatar oliverfindl commented on August 16, 2024

Zdravim,

problem z mojho komentara vyssie opraveny stale nie je. Je to nasledok viac-nasobneho importnutia suboru src/idsk/overrides/_all.scss, konkretne:

@import "overrides/all";

@import "../../overrides/all";

Taktiez mi doteraz nie je jasne, ci je mozne tento font z buildu kompletne vylucit s pouzitim inej font-family (napr. Arial) tak, aby sa v pozadi nestahovalo 150 kB, resp. 300 kB fontov, ktore nebudu pouzite.

Dakujem.

from id-sk-frontend.

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.