[Vue] Performance improvement: use scoped styles and load plugin styles on demand too #18983
Labels
c: Performance
For when we could improve the performance / speed of Matomo.
Milestone
Another potential improvement to page load time: all of Matomo's styles are currently loaded synchronously in one request. It doesn't take much time, but there would be a performance improvement, if the file was smaller.
If the styles were moved to Vue modules as scoped styles, then for plugins that are loaded on demand, the styles could be removed from the main merged stylesheet.
To accomplish this:
importPluginUmd()
would need to be augmented with the ability to load CSS files generated by webpackRefs #18981 & #18980
The text was updated successfully, but these errors were encountered: