• Resolved samdobrow

    (@samdobrow)


    I am getting the following “400 Bad Request” error code from WP-Optimize when it calls the Google Fonts URL.

    GET	https://fonts.googleapis.com/css2
    ?family=Alegreya:ital,wght@0,400;1,400
    &family=Julius+Sans+One:ital,wght@0,400
    &family=Alegreya+SC:ital,wght@0,400;0,greek;0,greek-ext;0,khmer;1,
    &subset=cyrllc;1,cyrllc-ext;1,devanagar;1,latn;1,latn-ext;1,vetnamese
    &display=swap	400 Bad Request
    	
    
        WP_Optimize_Minify_Functions::download_remote()
        wp-content/plugins/wp-optimize/minify/class-wp-optimize-minify-functions.php:1008
        WP_Optimize_Minify_Functions::get_asset_content()
        wp-content/plugins/wp-optimize/minify/class-wp-optimize-minify-functions.php:645
        WP_Optimize_Minify_Functions::download_and_minify()
        wp-content/plugins/wp-optimize/minify/class-wp-optimize-minify-functions.php:585
        WP_Optimize_Minify_Front_End->process_header_css()
        wp-content/plugins/wp-optimize/minify/class-wp-optimize-minify-front-end.php:599
        do_action('wp_print_styles')
        wp-includes/plugin.php:476
        wp_print_styles()
        wp-includes/functions.wp-styles.php:57
        do_action('wp_head')
        wp-includes/plugin.php:476
        wp_head()
        wp-includes/general-template.php:3042
        load_template('wp-content/themes/visual-composer-starter/header.php')
        wp-includes/template.php:770
        locate_template()
        wp-includes/template.php:716
        get_header()
        wp-includes/general-template.php:48
    
    	Plugin: wp-optimize

    How do I fix this problem which slows down the web performance while the Google Fonts call times out?

Viewing 5 replies - 1 through 5 (of 5 total)
  • @samdobrow Where do you get these errors?

    Thread Starter samdobrow

    (@samdobrow)

    I use Query Monitor plugin. It shows the error.

    @samdobrow Could you please check the option “Asynchronously load CSS files from Google Fonts” from WP-optimize > Minify > Fonts and check if it helps to fix the issue?

    Plugin Contributor Venkat Raj

    (@webulous)

    @samdobrow Could you please post here the actually enqueued Google fonts URL in your theme or plugin?

    Either the enqueued URL is malformed or WP Optimize misinterprets the subsets while merging multiple google fonts. So posting the actual URLs will help us to solve the issue.

    Thanks

    Thread Starter samdobrow

    (@samdobrow)

    Changing the Fonts setting as described above removed the error. Thank you.

    samdobrowphotography.com

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WP-Optimize slowing down website with Google Fonts’ is closed to new replies.