Optimisation feature, add font-display swap




Wordpress LScache Plugin: Optimisation feature, add font-display swap

Last Updated on: Wed, 15 Apr 2026 00:00:02
Font Display optimation feature request. Add an option to append font-display: swap to all @font-face rules before caching the CSS file. Add an option to add the query param to google fonts too. For example, https://fonts.googleapis.com/css?family=Lobster&display=swap Even though swap is advised for best optimisation, providing a select dropdown with all possible options on the settings page. Options: auto, block, swap, fallback, optional Useful information regarding this optimisation Addy Osmani ? Shipped! GoogleFonts now lets you control web font loading using font-display. Say hello to the display parameter font-display.glitch.me https://addyosmani.com/blog/google-fonts-font-display/ https://developers.google.com/web/updates/2016/02/font-display This topic was modified 3 years, 5 months ago by Joe. This topic was modified 3 years, 5 months ago by Joe. This topic was modified 3 years, 5 months ago by Joe. High quality suggestion! Thanks. Will combine into v3.0. Will update here later once its done. Great news, thanks @hailite. This is done in https://github.com/litespeedtech/lscache_wp/commit/5b437eed942f6534c575a6d8bcdda585062eacaa and https://github.com/litespeedtech/lscache_wp/commit/556406023437bb7577177502ecc8917b1db42950 Thanks for your suggestion.



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference