html5 - Inline SVG vs SVG File Performance -


I am currently building a website with the help of modern browsers and mobile devices. In the case of performance, & lt; Svg & gt; It is better to inline the HTML directly inside the SVG using or & lt; Img & gt; It is better to use and / or background-image rather than instead. I run gizips on the server to make my content more seconds and I do not want to trust Javascript.

inline:

  • at least http request;
  • You can use CSS Frame Properties and change colors;
  • SVG is part of content, so it
  • is clickable and you can insert text; See several lines of irelevant code in your files;
  • If you need to change it later, you can only change one file;

Comments

Popular posts from this blog

c# - Roxy file manager in MVC doesn't accept session path -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -

java - Ajax call to jsp and jsp redirecting to further jsp -