• Resolved seancon1

    (@seancon1)


    interesting issue, running gtmetrix and other test its recommended to Defer parsing of JavaScript. found a couple of options and one was adding

    function defer_parsing_of_js ( $url ) {
    if ( FALSE === strpos( $url, '.js' ) ) return $url;
    if ( strpos( $url, 'jquery.js' ) ) return $url;
    return "$url' defer ";
    }
    add_filter( 'clean_url', 'defer_parsing_of_js', 11, 1 );

    to the functions.php
    thought this was a better option than another plugin.
    this brought that score up to 100. and didnt seem to cause any issues on the site.
    updating a featured image it would not remove the image, went to media to manually remove the image and the media page is blank. i had added the function a few days ago and forgot about it so i started with disabling all plugins (media page was normal now) and adding them back 1 at a time. since yoast was at the bottom it was enabled last and caused the blank media page. assuming it was a plugin conflict i disabled all plugins and enabled yoast… blank media page. i know it was not an issue in the past and thought back to any other changes. the function came to mind so i removed it and yoast had no impact and the media page worked as expected.

    so in short, the combination of yoast and the above function killed the media page.

    is there a recommended method or a fix?

    thanks
    Sean

Viewing 4 replies - 1 through 4 (of 4 total)
  • devnihil

    (@devnihil)

    We can’t offer support on custom code (needed to change (core) features of our plugin). Since we don’t want to take the risk that we break your website by suggesting incorrect or incomplete code, we cannot advise you on how to make such changes. Maybe someone watching these forums can assist you further, but if your topic is inactive for 7 days, we’ll mark it as resolved to keep the overview.

    Thank you for your understanding.

    Thread Starter seancon1

    (@seancon1)

    oh, please… as an SEO plugin, you cant advise on something or give advise on a setting that will improve seo score? it does not change a core feature of your plugin but breaks a core element of wordpress.

    devnihil

    (@devnihil)

    @seancon1 Sorry we misunderstood your original post. If you are experiencing a blank media library when using the plugin, can you please confirm you are using the most recent Yoast v14.1? You can learn more about updating here: https://kb.yoast.com/kb/how-can-i-update-my-free-plugin/

    Also, can you confirm you are using WordPress 5.4.1? You can check by clicking on the W in the top left and selecting About. If you need to update, please check with your host provider. Please know that if you are using an older version of WordPress Core you may experience unexpected behavior with Yoast. This guide explains more: https://yoast.com/why-we-dont-support-old-wordpress-versions/

    ​If you update to the most current version of WordPress and Yoast SEO, does this resolve the issue?

    If the issue is still occurring after confirming both Yoast SEO and WordPress are updated, this may be due to a plugin or theme conflict. Can you try and gather as much information for us as possible? Please perform the following:

    1. Make sure the issue doesn’t persist when Yoast SEO is disabled.
    2. Check for conflicts.
    3. Check for JavaScript errors with your console.
    If you find any JavaScript errors related to Yoast SEO or if there is a conflict with a plugin or a theme, you can create a new GitHub issue for our developers. Please report the issue to a third party developer as well.

    If you didn’t find any conflicts or errors, we think the issue is specific to your site. We’d need to investigate further but are unable to do so on these forums. You can purchase Yoast SEO Premium and receive our Premium email support and we can help you further.

    Jerlyn

    (@jerparx)

    Hi @seancon1 ,

    We’re closing this thread because we haven’t heard back from you in a while. Should you have further questions, please open a new thread.

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

The topic ‘Media Tab Blank’ is closed to new replies.