Better Support for <use> Tag in SVG Icons

Hi Bricks Team :wave:

I’d like to suggest a useful feature…

Please consider adding full support for the tag in SVG.

Right now, when we want to use the same icon or shape multiple times, we have to repeat the entire SVG code each time. This increases the overall size of the page and makes things harder to manage.

With the tag, we can define an icon once in and reuse it anywhere using . The benefits:

Significantly reduces HTML/SVG code size

Improves page load performance

Makes icon management easier

Allows use of centralized icon systems or SVG sprites

This would be a great improvement for developers who care about clean, optimized code.

Before

After

After

Thanks for your awesome work :raised_hands:

2 Likes

+1 for this feature! Would be really useful for performance optimization.

BTW, there’s an interesting approach in this plugin: GitHub - jonathantneal/wp-svg-spritemap: Use SVGs in WordPress — Manage an SVG spritemap - might be worth checking out for inspiration on implementation.

2 Likes