Speed Up – Optimize CSS Delivery

Descrizione

This plugin is no longer recommended. Deferring every stylesheet makes the page paint before its own layout arrives. That flash of unstyled content is measured as Cumulative Layout Shift — one of the Core Web Vitals this plugin is meant to improve.

The current advice is to inline the CSS needed for the top of the page and defer only the rest, which is more than rewriting a link tag can do.

If you have not configured the exclusion filter for your main stylesheets, deactivating this plugin will most likely improve your scores rather than worsen them.

Questo piccolo plugin (5 Kb) carica gli stili in modo asincrono e migliora il tempo di caricamento delle pagine.

L’uso raccomandato di questo plugin e di caricare i CSS meno importanti in modo asincrono. I CSS meno importanti possono essere ad esempio: i font, le icone, CSS specifici per le parti del template non immediatamente visibili (ad esempio il footer), etc.

Puoi scegliere quali file caricare in modo sincrono con un filtro nel tuo function.php, esempio:

// exclude main and child stylesheets from delivery optimization
function exclude_from_delivery_optimization($handle){
    return in_array($handle, array('main-stylesheet', 'child-stylesheet'));
}
add_filter('speed-up-optimize-css-delivery', 'exclude_from_delivery_optimization');

Nota: questo funziona solo se gli altri plugin e il tema aggiungono i CSS nel modo corretto.

Installazione

  1. Carica la cartella speed-up-optimize-css-delivery nella cartella /wp-content/plugins/
  2. Attiva il plugin attraverso il menu ‘Plugin’ in WordPress

Recensioni

15 Luglio 2022
This plug-in is a blessing This plug-in is the best! We have to give a big prize to the person who created this plug-in. Thank you very much.
25 Marzo 2022
Does what it says on the tin, which Google pagespeed likes a lot.
24 Giugno 2020 1 risposta
THIS PLUGIN IS THE BEST PLUGIN I'VE EVER SEEN IN WORDPRESS. I had page load speeds around 3 to 5 seconds, but after I installed and activated this plugin, it dropped to 1.5 seconds. I was like "Bruh, is this for real? I have been trying to speed up my page for days, and it took only 1 plugin? Woah." I appreciate the work.
1 Febbraio 2018
This is great plugin! By use this plugin is possible to get green level into Google Page Speed Insight without using any cache plugin. Off course javascripts have to be loaded asynchronously and (or) defer.
Leggi tutte le recensioni di 8

Contributi e sviluppo

“Speed Up – Optimize CSS Delivery” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori

Changelog

1.0.14

  • Deprecated: deferring every stylesheet causes a flash of unstyled content, measured as Cumulative Layout Shift. A dashboard notice explains the trade-off and when deactivating will improve your scores

1.0.13

  • Fix the media attribute being captured too greedily: an attribute added after it by another filter ended up inside the generated tag
  • Escape the stylesheet handle and URL before writing them into the tag
  • Declare minimum requirements: WordPress 6.0 and PHP 7.0

1.0.12

  • Tested up to WordPress 7.0

1.0.11

  • Tested up to WordPress 6.0

1.0.10

  • Tested up to WordPress 5.9

1.0.9

  • Tested up to WordPress 5.7

1.0.8

  • Tested up to WordPress 5.5

1.0.7

  • Tested up to WordPress 5.5

1.0.6

  • Tested up to WordPress 5.3

1.0.5

  • Tested up to WordPress 5.2

1.0.4

  • Fix some css are loaded two time

1.0.3

  • Update loadCSS

1.0.2

  • Tested up to WordPress 4.9
  • Update loadCSS

1.0.1

  • Fix bug css not loaded if cached.

1.0.0

  • Initial release.