Skip to content

Instantly share code, notes, and snippets.

@brianleejackson
Created December 8, 2023 03:58
Show Gist options
  • Select an option

  • Save brianleejackson/7a7a7a648e49fd665f6e1cb3a46c980d to your computer and use it in GitHub Desktop.

Select an option

Save brianleejackson/7a7a7a648e49fd665f6e1cb3a46c980d to your computer and use it in GitHub Desktop.

Revisions

  1. brianleejackson created this gist Dec 8, 2023.
    8 changes: 8 additions & 0 deletions disable-wordpress-fetch-priority.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    function disable_fetchpriority_high( $loading_attrs ) {
    unset( $loading_attrs['fetchpriority'] );
    return $loading_attrs;
    }
    add_filter(
    'wp_get_loading_optimization_attributes',
    'disable_fetchpriority_high'
    );