I've been stalling on websites and those who use SVG logos often put them in a file separately. This brings up the convenience of when you change the file, on all pages it changes, but you make one more request.
Is it a good idea instead of calling the image, inserting it directly into HTML? Regarding the practicality I mentioned above, it could easily be bypassed with a file called logotipo-svg.php
(or logotipo-svg.html
) that would generate the SVG inline code ready to be inserted into the page through a:
echo '<div class="logotipo">' . file_get_contents('logotipo-svg.php') . '</div>';
Is it too much work to reduce the data transferred? Is the amount of data to be transferred reduced?