inline SVG questions
-
Hi!
I can’t seem to make this plugin’s standard approach work, because almost no plugins let us target an IMG with a custom class.
So I am now using force-all inline, and going through my site and dealing with the few gotchas that introduces.
The main issue I see with this plugin is that in either of those approaches, the plugin swaps images out after page load.
That results FOUC and layout shifting etc. which is not only janky looking but also going to get us SEO dinged one of these days as CLS becomes a serious target for Google.
This may be a dumb question, but is it not possible to implement inline SVG rendering on the server side?
I thought about how I might make every SVG visibility:none until the swap out is complete, but can’t figure that out either, and I guess that wouldn’t fix the underlying “how much space does this occupy” calc issue either.
Also I might be able to fix it if I could somehow reliably inherit the EXACT dimensions of every single IMG, but I haven’t figured out how to do that yet.
Do you have any thoughts on strategies?
Thanks for the awesome plugin, so loving the ability to animate everything.
- The topic ‘inline SVG questions’ is closed to new replies.