Loading almost 3000 SVG files when opening web page #1977
-
Hi, I am a developer in a small company. We are currently entirely on Semantic-UI. For some time now, I discovered Fomantic-UI and wanted to give it a try. (We work with Spring Boot, Thymeleaf, WebJars, HTML, JS and CSS) To test your library, I simply made a clone of the repos and pointed my JS and CSS dependencies from Semantic-UI to your library. (the folder called "fomantic-ui" is the "dist" folder of the repo)
Everything works perfectly except for a big detail. Every time I load a web page, I have almost 3000 svg files to download.So here is my questions: How to avoid loading all these files?If that's not possible, how do you prevent it from slowing down the loading of a page? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Including the scripts alone does not trigger all those requests. So there seems to be something else on your page. Your log screenshots show that index.js is loading all those SVG Files and they are inline data streams, which we don't have. ONly the emoji component uses svg files but those are linked to a cdn. |
Beta Was this translation helpful? Give feedback.
Including the scripts alone does not trigger all those requests. So there seems to be something else on your page.
Could you please create a jsfiddle, so we can reproduce your behavior?
Your log screenshots show that index.js is loading all those SVG Files and they are inline data streams, which we don't have. ONly the emoji component uses svg files but those are linked to a cdn.