• Resolved sebastiengc

    (@sebastiengc)


    Hello!

    I am currently using the Free version of Jetpack Boost, and I would like to verify if it is functioning correctly. I’m quite happy of the plugins.

    However, after enabling the new “Concatenate CSS” feature, I encountered an issue. I am unable to generate the “Optimize Critical CSS Loading (manual)” option, and as a result, an error appears on the homepage:

    Link behind the “Jetpack Boost couldn’t verify this page:”: https://ringtwice.be/nl/?jb-generate-critical-css=98c8eba4ef

    When I disable “Concatenate CSS” it is generate well. But I want to enabling the new “Concatenate CSS” feature.

    The page at https://ringtwice.be/nl is generated by WordPress. However, the page https://ringtwice.be/nl/ is generated by a Rails application. Additionally, when accessing https://ringtwice.be/nl/, it redirects to https://ringtwice.be/nl without the trailing slash.

    The issue arises when https://ringtwice.be/nl/?jb-generate-critical-css=98c8eba4ef is accessed. Instead of directing to the WordPress page, it redirects to our Rails application page. This particular page, https://ringtwice.be/nl/?jb-generate-critical-css=98c8eba4ef, is not a WordPress page. Consequently, Jetpack Boost is unable to generate the required file.

    If anyone within the community has any insights on resolving this issue, your input would be greatly appreciated.

    Thank you to the community for any assistance you can provide.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Mark (a11n)

    (@thingalon)

    Hi @sebastiengc

    The page at https://ringtwice.be/nl is generated by WordPress. However, the page https://ringtwice.be/nl/ is generated by a Rails application.

    This is a slightly unusual setup. As /nl/ redirects to /nl, would it make sense to just have /nl/ served by WordPress in the first place?

    However, if that’s not possible, you should be able to customize the URLS that Jetpack Boost uses when generating Critical CSS using the jetpack_boost_critical_css_urls filter.

    If you are mixing Rails with WordPress, it sounds like you are an advanced user, and are likely comfortable with coding? Something like this might work with some testing and modification:

    function custom_url_strip( $urls ) {
        return array_map( function( $url ) {
            return str_replace( '/nl/', '/nl', $url );
        }, $urls );
    }
    add_filter( 'jetpack_boost_critical_css_urls', 'custom_url_strip' );
    Plugin Support Joseph B. (a11n)

    (@tamirat22)

    Hello @sebastiengc

    It’s been one week since this topic was last updated. I’m going to mark this thread as solved. If you have any further questions or need more help, you’re welcome to open another thread here. Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Optimize Critical CSS Loading on landing with parameters’ is closed to new replies.