yoshiharuyamashita / blackburn

A Hugo theme built using Yahoo's Pure CSS
MIT License
317 stars 170 forks source link

Performance improvements by asynchronous loading of optional JS extensions in the header #117

Closed Tristor closed 3 years ago

Tristor commented 3 years ago

Howdy,

One of the things I've been improving lately on my site is the performance. Many of the earlier changes were driven by that desire, and this is another small change that has helped performance. I'm down to under 400ms for a full paint on desktop and under 800ms on mobile in my testing once making this change.

This change does three things:

  1. Preferences using the CloudFlare provided CDNJS for externally loaded assets
  2. Uses the latest version of FontAwesome 5 with minified CSS
  3. Asynchronously loads MathJax and HighlightJS

Thanks

yoshiharuyamashita commented 3 years ago

Thank you @Tristor.