I have some SVG objects displayed within bootstrap tabs
<object
className="test_card"
type="image/svg+xml"
data={"http://127.0.0.1:8000/static/images/card_layout.svg"}>
Your browser does not support SVGs
</object>
The problem is that everytime I change the active tab, there is a short delay before the SVG images get displayed, like the page is loading them.
If I use <img/>
to display the SVGs, they stay loaded and show instantly when I activate the tab, but I need to be able to modify some of the SVG content dynamically, so I can't use that.
How can I keep the SVG pictures loaded?