https://github.com/jazir555/Inline-SVGs-uploaded-to-Elementor-Icon-Widget/tree/main
I'm working a plugin which creates a toggle in the icon widget's advanced settings which when enabled inlines the SVG file directly into the HTML document to eliminate the HTTP request for the SVG file, which can improve pagespeed performance when used with small SVG files.
I would greatly appreciate it if anyone could take a look and review the code to see if there are any bugs or amendments that need to be made. Once this is bug free (or as close as I can get it), I intend to add functionality to the plugin to encompass any widget which allows adding SVG icons.
