• Resolved guteLaune

    (@gutelaune)


    Hello, everybody,

    i have a dynamic stylesheet which is embedded in the head as :
    <link rel=’stylesheet’ id=’accesspress_parallax-dynamic-style-css’ href=’…/wp-content/themes/accesspress_parallax_pro/css/style.php?ver=4.9.8′ type=’text/css’ media=’all’ />

    criticalcss.com power-up does not take style.php into account. GPSI gives me a renderblocking error message.

    What to do?

    Thanks
    Frank

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Hey Frank;
    This is an issue in Autoptimize itself actually, dynamically generated CSS cannot be aggregated, but AO _should_ defer it but does not seem to so it is considered render-blocking. I’ll look into this and get back to you on the subject soon.

    have a nice Sunday,
    frank

    Thread Starter guteLaune

    (@gutelaune)

    Hi Frank,

    great service, really!

    Have a nice Sunday, too.
    Frank.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, I just pushed a commit to GitHub that aims to fix this, can you download the Github AO zipfile and install it (disable the current one)?

    frank

    Thread Starter guteLaune

    (@gutelaune)

    Hi Frank,

    AO deactivated, deinstalled. Your (todays) Github AO zipfile loaded, activated.

    Dynamic-css.php is not more blocking rendering. Works fine.

    Thank you for your fast work!
    Frank

    PS: One (small) remark:
    After Activating AO, in Admin dashboard a message is shown:
    “Autoptimize Power-Up: CriticalCSS requires Autoptimize to be installed and active.”
    I could find a way to close this …

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    After Activating AO, in Admin dashboard a message is shown:
    “Autoptimize Power-Up: CriticalCSS requires Autoptimize to be installed and active.”
    I could find a way to close this …

    yeah, that’s because the power-up does not know about autoptimize-master/autoptimize.php, so what you could to is disable AO, rename autoptimize-master into autoptimize and re-enable AO 🙂

    Thread Starter guteLaune

    (@gutelaune)

    Ok.

    Returning to my style(sheet).php above:

    It is not blocking rendering anymore, but GPSI critizeses large amount of unused code in the style.php.
    (Same as my last topic, so it is no need to answer here again):
    https://wordpress.org/support/topic/criticalcss-defer-unused-css/

    Lets close this as SOLVED.

    Thank you again!
    Frank

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Thank you again!

    you’re welcome Frank, feel free to leave a review of the plugin and support here! 🙂

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘dynamic css via php: how to create critical path css’ is closed to new replies.