同一个SVG,页面要加载两次,很浪费时间,有什么办法只加载一次。
<ul class="offcanvas-navigation">
<li><span class="icon"><img src="img/icons/profile.svg" class="injectable" alt=""></span><a href="logint.php">Login / Sign up</a></li>
<li><span class="icon"><img src="img/icons/profile-two.svg" class="injectable" alt=""></span><a href="profile.php">My Profile</a></li>
<li><span class="icon"><img src="img/icons/notification.svg" class="injectable" alt=""></span><a href="notification.php">Notification</a></li>
<li><span class="icon"><img src="img/icons/product.svg" class="injectable" alt=""></span><a href="shop.php">All products</a></li>
<li><span class="icon"><img src="img/icons/cart-two.svg" class="injectable" alt=""></span><a href="order.php">My Order</a></li>
<li><span class="icon"><img src="img/icons/cart-three.svg" class="injectable" alt=""></span><a href="cart.php">Cart</a></li>
<li><span class="icon"><img src="img/icons/gear-two.svg" class="injectable" alt=""></span><a href="edit-profile.php">Settings</a></li>
</ul>