Skip to content

Cherry/svg-external-sprite-redownloaded

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

svg-external-sprite-redownloaded

Illustrative repo demonstrating SVG sprite being always downloaded when DOM is reconstructed.

Usage

  • Run any kind of server to staticly serve assets, such as npx serve
  • Hit browser, and watch network console
  • Browsers will re-request the sprite.svg over the network every single time the DOM is reconstructed, each second
  • The pngs on the other hand get downloaded once (or sometimes twice?), and never again

Chromium

Safari

Firefox

  • sprite.svg only requested once. This is what I would consider to be the expected behaviour.

About

Illustrative repo demonstrating SVG sprite being always downloaded when DOM is reconstructed

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published