• Resolved Antony Booker

    (@antonynz)


    Thanks for this plugin.

    I noticed the redux-custom-fonts CSS file in wp-content/uploads/redux/custom-fonts/fonts.css?ver=1736987826 is being redownloaded by the browser on each page view due the version number changing every second (as it’s based off time).

    Would it be possible to apply the patch below to the redux-core/inc/extensions/custom_fonts/class-redux-extension-custom-fonts.php file to improve the front-end performance for that request:

    Replacing:

    wp_enqueue_style(
    'redux-custom-fonts',
    $this->upload_url . 'fonts.css',
    array(),
    time()
    );

    with:

    wp_enqueue_style(
    'redux-custom-fonts',
    $this->upload_url . 'fonts.css',
    array(),
    filemtime( $this->upload_dir . 'fonts.css' )
    );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.