-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inject SVG sprite via ajax #10320
Inject SVG sprite via ajax #10320
Conversation
Signed-off-by: jolheiser <[email protected]>
Can we inline the content of |
According to the article, this method preserved being able to cache it whereas inlining wouldn't? |
Yeah, it would not be able to cache it and it would add 70kB to every HTML request, so probably not the way to go. Ideally, the |
There is a syntax error in |
Signed-off-by: jolheiser <[email protected]>
Added the comma |
Oh, and please remove serviceworker entries for |
Codecov Report
@@ Coverage Diff @@
## master #10320 +/- ##
=======================================
Coverage 43.72% 43.72%
=======================================
Files 585 585
Lines 81015 81015
=======================================
Hits 35421 35421
Misses 41211 41211
Partials 4383 4383 Continue to review full report at Codecov.
|
Signed-off-by: jolheiser <[email protected]>
Thanks for the quick response and help! 馃 |
Co-Authored-By: silverwind <[email protected]>
I wasn't aware of this issue with |
Make lg-tm work |
Per discussion in Discord,
gitea.com
currently has no SVG icons. 馃槺https://stackoverflow.com/questions/27458729/amazon-s3-cors-issue-with-svg-on-all-major-browser
https://css-tricks.com/ajaxing-svg-sprite/
This PR uses the method mentioned in the linked post.
Ping @silverwind for feedback or suggestions concerning this method and injecting the sprite into the DOM.