Skip to content

Commit

Permalink
perf: 404页去除不需要的资源
Browse files Browse the repository at this point in the history
  • Loading branch information
KotoriK committed Jan 16, 2022
1 parent c12fce4 commit dbb459f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion 404.php
Expand Up @@ -9,7 +9,13 @@
*/

?>
<html <?php language_attributes(); ?>>
<html <?php language_attributes();
add_action('wp_head',function(){
wp_dequeue_style('wp-block-library');
wp_dequeue_style('wp-block-library-theme');
wp_dequeue_style('entry-content');
},5);
?>>

<head>
<meta charset="<?php bloginfo('charset'); ?>">
Expand Down

0 comments on commit dbb459f

Please sign in to comment.