Releases: zaneray/inline-svg
Preventing duplicate ajax calls, tracking
Tracking all specific ajax calls and preventing duplicates
Image class propagation
Allowing each instance of an image's classes to propagate to itself when the svg is loaded, but not any other instances
Changing 'loaded' class addition method
Fix of bug from previous update where duplicate svg classes were getting propagated to all svg's with that src. Changing how the 'loaded' class is added so as to avoid this issue.
Prevent unnecessary ajax calls
If there are multiple inline-svg image instances on the page with the same src, load the svg content for those images on a single ajax call, instead of making many ajax calls.
Fixing issues with Mutiple requests
Now detects whether or not the element is an image and prevents mutiple recursive requests.
Now works with elements added Dynamically to the page.
Now utilizes MutationObserver
to watch for any element added to the DOM with the original selector from the plugin. When MutationObserver
sees a DOM change happen to the body and any children the plugin now rescans the DOM for any unloaded inline SVG elements and applies the inlining function to them.
Detecting Loaded Class
0.1.3 Update bower.json
updating version
0.1.2 update version
Updated to check in response type
Checking on Response type Checking on response type so it doesn't load 404 pages and adds a class of loaded.
initial release.
v0.1 Merge branch 'master' of https://github.com/zaneray/inline-svg