Forums

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

Home Forums CSS @import HTTP Requests

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #31348
    humanshell
    Member

    I have a quick question for any CSS experts out there regarding using @import at the top of the main style.css.

    I’ve read in many different places that an important component in decreasing site load times is the limiting of unnecessary HTTP requests to your server.

    Does using @import in style.css to include a reset.css and a type.css from a specific CSS folder in my (WordPress) template’s root create a single CSS file on the server side or am I basically pulling down three individual files and actually increasing my number of HTML requests?

    #64148
    jamygolden
    Member

    They both do the same thing. You are pulling down three individual files which increases HTML requests.

    #64093
    humanshell
    Member

    Thank you jamy_za. I suspected as much but wanted to ask anyways.

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