Home
Projects
Resources
Alternatives
Blog
Sign In
Svg Inject Versions
Save
A tiny, intuitive, robust, caching solution for injecting SVG files inline into the DOM.
Overview
Versions
Reviews
Resources
v1.2.3
5 years ago
Change makeIdsUnique to convert all IDs by default
v1.2.2
5 years ago
handle root element correctly for ID uniquification
v1.2.1
5 years ago
fixes a bug where cached SVGs are not injected correctly
v1.2.0
5 years ago
major performance improvements for cached SVGs
added performance testing in /test/test_performance.html - SVGInject is super fast!
add onAllFinish hook to options
now a Promise object is returned from the SVGInject() call when all SVGs are injected (similar to onAllFinish)
handles some edge cases for making ids unique
v1.1.2
5 years ago
Support for SVGs exported from Inkscape and Corel Draw
Code cleanup
v1.1.1
5 years ago
Handle empty and missing
src
attributes gracefully
Handle: Id not converted if reference is in style attribute
use DOMParser instead of innerHTML to create SVGs from String
added Test for malformed SVGs
v1.1.0
5 years ago
add beforeLoad hook as option
code cleanup
improved code comments
change name of option cache to useCache
v1.0.5
5 years ago
change suffix in makeUniqueIds to use a counter instead of a random string
code optimization/cleanup
improved code comments
v1.0.4
5 years ago
update distribution files
v1.0.3
5 years ago
fix: Empty SVGs on Internet Explorer
workaround for IE8 (only) in some cases not displaying images after src attribute gets replaced dynamically
« Previous
Next »
Home
Projects
Resources
Alternatives
Blog
Sign In
Sign In to OSA
I agree with
Terms of Service
and
Privacy Policy
Sign In with Github