jakearchibald / svgomg

Web GUI for SVGO

Home Page:https://jakearchibald.github.io/svgomg/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve output switcher

XhmikosR opened this issue · comments

It seems that right now we completely remove the .svg-output/.code-output elements when switching tabs. Couldn't we keep the elements and update them as needed/hide the inactive one properly?

Secondly, if one's compressing a big file (like https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/gallardo.svg), there's a noticeable slowdown when switching tabs. Might be related to the aforementioned point, but I was wondering if we using some kind of cache like we do elsewhere could help?