Giter Club home page Giter Club logo

Comments (4)

36degrees avatar 36degrees commented on July 21, 2024

I'll leave defining the tasks we want to do until this epic is picked up, but a few thoughts on things we could do:

  • #3732 – this would help us learn where the pain points are
  • move as many responsibilities from initAll to the components (for example, the data-module selector is only defined in initAll) to make it easier to include the JS for components without initAll
  • make it possible to generate a custom version of the 'dist' JS + CSS, like you could with Bootstrap in ye olde days
  • improve our documentation to nudge people towards optimising what they include
  • create a calculator that asks people to select the components they're actually using, and then show them how much they could shave off their file size – it could also
    • ask for approx number of sessions and calculate the impact on carbon footprint
    • allow the data to be submitted and feed into a dashboard with the estimated collective impact the changes have had
  • blog about it
  • show and tell about it
  • run a clinic or workshop focused around it

from govuk-design-system.

36degrees avatar 36degrees commented on July 21, 2024

Another suggestion that came up in a recent conversation with @romaricpascal – allowing users to specify which components (or other parts of the code?) they want to include the Sass for using a Sass variable:

$govuk-included-components: (
    "button",
    "header",
    "footer"
);

@import "govuk/all";

from govuk-design-system.

36degrees avatar 36degrees commented on July 21, 2024

If we're revisiting our guidance on importing things, we might want to take this opportunity to split up or re-organise the 'Import CSS, assets and JavaScript' page which is becoming a bit unwieldy.

from govuk-design-system.

36degrees avatar 36degrees commented on July 21, 2024

Calling this done.

from govuk-design-system.

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.