Dave Long
Dave Long

Reputation: 9759

Are CSS Stylesheets loaded Asynchronously

When loading stylesheets via the tag, are the stylesheets loaded asynchronously or synchronously? I have a design with two stylesheets: mura.css and typography.css. They are loaded in the area of the page and typography.css is loaded just before mura.css. For some reason though mura.css attributes are showing in the Chrome Webtools as being overwritten with typography.css.

Upvotes: 5

Views: 2528

Answers (1)

Michael Irigoyen
Michael Irigoyen

Reputation: 22947

CSS files are loaded in the order they are included in the file.

If something from the first CSS file is overwriting something in the second CSS file, it is most likely due to your selectors being used incorrectly. Double-check your selectors for the elements of the page that are incorporating the style incorrectly.

Upvotes: 6

Related Questions