Closed Bug 1566695 Opened 6 years ago Closed 5 years ago

[Tracker] Cleanup and segment CSS

Categories

(developer.mozilla.org Graveyard :: General, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: espressive, Assigned: espressive)

References

Details

(Keywords: in-triage)

With the new infrastructure changes to MDN Web Docs we now have a read-only(currently in beta) version of the site as well as a wiki. domain that is aimed and our writers and content contributors.

As such, there are now styles that

  1. Relate specifically to UI components and features on the wiki
  2. Relate specifically to UI components and features on the read-only portion
  3. Are shared between the two

In order to enable us to create cleaner, leaner bundles that are specifically targetted towards the individual deploy targets we need to create smaller component(molecule sized[1]) chunks that can then be composed together for the appropriate target.

This will at the same time facilitate the creation of the styleguide/pattern library, as well as offer an opportunity to clean up or CSS codebase, which will lead to the following:

  1. A clean and more manageable CSS codebase
  2. Enhanced performance (not necessarily load times(although that is also possible), but faster TTI and TTFP as there is simply less CSS to download, parse and execute

[1] http://bradfrost.com/blog/post/atomic-web-design/#molecules

I'm changing the component because this work is actually genuinely relevant and not just a matter of some left-over stuff that was just waiting for someone to have time.

Also, how is this bug different from https://bugzilla.mozilla.org/show_bug.cgi?id=1566456 ?
We can morph that but to be just about diff.scss and a blocker of this tracker bug. Good idea?

Component: Code Cleanup → General

(In reply to Peter Bengtsson [:peterbe] from comment #1)

I'm changing the component because this work is actually genuinely relevant and not just a matter of some left-over stuff that was just waiting for someone to have time.

Also, how is this bug different from https://bugzilla.mozilla.org/show_bug.cgi?id=1566456 ?
We can morph that but to be just about diff.scss and a blocker of this tracker bug. Good idea?

Sounds good to me

Depends on: 1567409
Keywords: in-triage
Depends on: 1566456
Depends on: 1569958
Depends on: 1570032
Depends on: 1570036
Depends on: 1570143
Depends on: 1571136
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.