by djsumdog · 8y ago · 0 comments
I think we should see more of a movement to get away from Javascript for displaying basic content.
To show icons to the 99.5% of people who use the web with Javascript? Even Font Awesome suggests people go this route today.
I noticed the default free CDN option was JS when version 5 of FA came out, but now the default is font based:
https://fontawesome.com/get-started
Note the tab order, it's Font | Js | Desktop | Advanced.
It used to start with JS, so I think you may be wrong on this point, even if they "recommend" it in their docs, their defaults argue otherwise.
https://cloudfour.com/thinks/seriously-dont-use-icon-fonts/
As far as JavaScript goes, it has been a part of making sites work since the 90's. End users and developers won't ever be moving away from it since there are usually improvements that are gained by using it.
It does take a little bit longer to setup. You might have to refresh a page 2 or 3 times to get the right rules, but it keeps a lot of excessive Javascript from running in the background. If I disable first-party by default, it also prevents modals, cookie warnings, pay walls and all that other garbage. It reduces my browsers memory footprint and CPU usage as well.
I should have installed uMatrix years ago.