Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS why are two stylesheets serially applied one after the other?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #239966
    Nick Levinson
    Participant

    A website may consecutively implement a couple of stylesheets. Why? These are not browser-default stylesheets, the content is definitely styled both times, the first stylesheet is only briefly applied, and, as far as I know, nothing the user does causes the first stylesheet to be replaced by the second, replacement being automatic and maybe script-driven. Weather.com is not the only case (at that site, the effect is visible only on the first loading of the page, not on refreshment, when only the last stylesheet is applied). But why would someone design a page to have two stylesheets in rapid succession? Why not just eliminate the first stylesheet and apply only the second one, as the only stylesheet? I guess there’s an advantage in two, but what?

    #239969
    Paulie_D
    Moderator

    Without knowing the specifics it’s hard to comment but perhaps the first is for general basic layout and styling while the second enhances the overall looks.

    Perhaps it’s based on the content on the page, or critical CSS.

    Could be lots of reasons.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.