Small tip on how to speed up your site by preloading the newsmag font

Posted in: Newsmag
Post count: 21

Hope this is ok to post here if not admin can delete it if prefered. My site scores 100 in the performance section using LiteSpeed Cache (wich is free) now i have a smal personal site so i also use the QUICKCloud CDN service wich is not too expensive (i put in 10 euros over a year a go and still have 3 euro left) this by itself already will boost your site speed by alot) but i wont dive into all the LiteSpeed Cache options and settings but it is a great free alternative.

So for those not using a expensive cache program like WPRocket that has a setting to preload your fonts but still would likle the benefits you can add a function to the theme’s functions.php file its best adviced to set up and do this on the Newsmag Child theme. This will also remove the font from ther Network dependency tree.

My site scored 100 already before i preloaded the font but it just adds up with all other optimizations so the Newsmag websites can really be blazing fast! DRiFT MAFIA Website

Just open the functions.php file in your prefered texteditor and ad this code at the bottom:
I could nott post the code for some reason probly safety
code

Page Speed Website

  • This topic was modified 2 weeks by Danny.
Post count: 21

pastebin for the code : https://pastebin.com/kQFZ2qBe

Post count: 20685

Hi,

That’s the perfect result. Litespeed is indeed a very good, and most importantly free alternative, to WP Rocket. For website owners who wants to optimize the website and achieve the best result, every tip and small detail matters.

Thank you!

Post count: 9544

Also good to put any custom code into an agnostic WP plugin you make yourself, not modify any functions.php file.

Post count: 21

sounds good but unfortunatly i would not know how to do this tho, are there any tutorials for it online maybe?

Post count: 9544

hundreds of tutorials online going back 20 years:

e.g.,
https://www.dreamhost.com/blog/how-to-create-your-first-wordpress-plugin/

Post count: 21

thnx 🙂

Post count: 9544

You can also put stuff in the custom plugin like code to disable emoji font, disable gutenberg crap if not using, stop nag for “is this still your admin email” etc.

Viewing 8 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic.