I think for the most part it does not result in another HTTP request as these are usually dumped in the browser’s cache after the first access.
This is actually more efficient than any of the proposed “solutions”.
More Related Contents:
- Changing website favicon dynamically
- Make a link use POST instead of GET
- HTML5 Canvas vs. SVG vs. div
- How to draw an inline svg (in DOM) to a canvas?
- Alternative for deprecated SVG pathSegList
- Convert SVG to PNG with applied images as background to svg elements
- Creating SVG elements dynamically with javascript inside HTML
- Add SVG element to existing SVG using DOM
- How do you access the contents of an SVG file in an element?
- shorthand http:// as // for script and link tags? anyone see / use this before?
- D3js take data from an array instead of a file
- How to use Google fonts in Canvas when Drawing DOM objects in SVG?
- Load event not fired on Safari when reloading page
- How to access the content of the “embed” tag in HTML
- Is it possible to use HTML’s .querySelector() to select by xlink attribute in an SVG?
- Is it possible to append a div inside an SVG element? [duplicate]
- Load JSON content from a local file with http.get() in Angular 2
- size of createElement(“svg”) is 0,0
- Rasterizing an in-document SVG to Canvas
- Is there an equivalent of canvas’s toDataURL method for SVG? [closed]
- Animate marquee on SVG curve
- Dynamically created SVG elements are not rendered by the browser
- Include SVG files with HTML, and still be able to apply styles to them?
- How do I dynamically insert an SVG image into HTML?
- D3 put arc labels in a Pie Chart if there is enough space
- How to change all elements with the same IDs javascript/html? [duplicate]
- Error: request entity too large
- HTML5 record audio to file
- How to linebreak an svg text within javascript?
- How to detect a long touch pressure with javascript for android and iphone?