• Resolved damink2

    (@damink2)


    Hi and please help!

    I’ve tried minifying css, but looking at the source code I see a huge chunk of inline css to get rid of and don’t know how. It begins with <style type=”text/css” id=”wp-custom-css”> There is also a large piece of css beginning with <style type=”text/css” media=”all”> earlier in the <head> tag. The first time I ran the minifier I accidentally used the “use inline css” option, but restored my backup and restarted the minifier in case this was the cause. There are a couple of js files in the <head> also I would like to have as file calls instead of the full code.

    How can I do this with your plugin? Thanks greatly.

    Damink

Viewing 1 replies (of 1 total)
  • Hi Damink,

    I accidentally used the “use inline css” option, but restored my backup and restarted the minifier in case this was the cause.

    Minify is a feature which you can just turn on or off, with no need to restore backups, as it doesn’t affect your website’s data, but rather compiles the assets. So disabling “inline css” and saving should have been enough.

    The first inline style <style type=”text/css” id=”wp-custom-css”> is likely the CSS which is added in the theme customizer.
    The rest of inline styles are probably added by plugins.

    Inline styles like these aren’t a bad thing, and are actually better than an external file in some cases, as they avoid an extra request to the server, which costs time.

    Marc.

Viewing 1 replies (of 1 total)

The topic ‘inline css’ is closed to new replies.