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

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

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

sql server ce - Is there some way to make sqlce3.5 and 4.0 co-exist in the C# project -