WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] .min.css and .css (3 posts)

  1. Manoj H L
    Member
    Posted 1 year ago #

    I really don't understand why minimum css are used
    for example form admin.css , admin.min.css is loaded
    As the name indicates i thought .min.css files contain min amount of css and load faster

    But only difference is in .min.css no comments are used ; all the css is in the same line not-organized.

    I really want to know what's going on here ..........

  2. ClaytonJames
    Member
    Posted 1 year ago #

    I really don't understand why minimum css are used
    for example form admin.css , admin.min.css is loaded

    I think WordPress might minimize and concatenate scripts/styles in just the admin area by default. You can probably change some of those behaviors - if you really want to - by defining some constants in your wp-config file; though I'm not sure that it's necessary if it's not causing any problems.

    I really want to know what's going on here .......

    Some cool stuff to look at in this file: http://core.trac.wordpress.org/browser/trunk/wp-includes/script-loader.php

    [edit]

    As the name indicates i thought .min.css files contain min amount of css and load faster

    That is correct, but it's not because of less css, it's because of less of everything else.

  3. Manoj H L
    Member
    Posted 1 year ago #

    i got it....

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags