How about this? https://packagist.org/packages/blade-ui-kit/blade-icons
Sep 5, 2022
14
Level 27
"Best" way to utilize icons
Hi,
I'm curious how you guys are utilizing icons in your apps.
UPDATE: Can someone explain why inline SVG is better than CDN CSS?
- It used to be just including a CDN CSS link and writing
<i class="fa fa-shopping-bag" aria-hidden="true"></i>, e.g. fontawesome 4, I read somewhere that this is not efficient - Fontawesome 5 seems to use something very complicated which I haven't figure out yet
- I came across another https://github.com/feathericons/feather#quick-start which uses javascript, this breaks, i.e. the icons don't show up, when the DOM is replaced after the page is loaded
- Are there other easier, efficient and robust ways, especially one that is able to include icons from other libraries?
Thank you.
Level 102
@laracoft Inline means that it just shows the svg directly. If you use a cdn, then the browser needs to download all icons before it can use them
Please or to participate in this conversation.