- I am using the CSS content attribute because it loads faster than the tags.
- The "fa-user" icon class has two sets of icons, i.e. "far" and "fas" but, they share the same Unicode "\f007". This is a problem.
- The result that is obtained has just one drawback. The icons load a couple of seconds after the page does. Hence, it messes with the UX.
- Using the tag adds up to commented HTML markup.
So, is there a way I can still use CSS content attributes and switch between the
"far"
and"fas"
classes?
Any suggestions to solve this?