Skip to content

Should extract css from js to improve performance #7368

Open
@benjiwheeler

Description

@benjiwheeler

We should extract css from js in our webpack asset compilation process. We might use the mini-css-extract-plugin to extract our styles into stylesheets and include them in the template.ejs file.

This would reduce the size of our JS and allow the browser to parallelize the loading of scripts/stylesheets.

There are two open PRs that address this:

The discussion in #4521 makes it sound like this change would require changes in several other repos; unclear if that is also true of scratchfoundation/scratch-www#5720

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions