Earlier quoted context omitted.
You can avoid the separate request by inlining the SVG or using a data URI
I haven't done web stuff in 15+ years. Isn't there the equivalent of a compiler to produce a more static page, which would handle things like putting SVGs inline? Or the ability to create a library (like CSS) where there would only be a single reference to all the reusable components of a page, which may in turn be "compiled" from individual source files?
Show HN: CSS ICON, an icon set crafted by pure CSS
41–50 of 69 posts
Re: Show HN: CSS ICON, an icon set crafted by pure CSS
#42Wow! I'm not really a front end person who works with this kind of stuff, so I don't know the real use case of this versus something else. But: I went through a lot of the simpler ones on the codepen (minus, plus, menu, etc.) and learned some awesome techniques that I didn't know, then recreated them from scratch and was able to create some of the more complicated things. tbh I probably learned more css in the last h…
Re: Show HN: CSS ICON, an icon set crafted by pure CSS
#43Really nice execution! I remember seeing similar projects [1][2] in the past and pondered usage of the `currentColor`. Btw, there are several occurrences of white components [4]; they are necessary for "breaking" lines, but surprisingly there are very few of them and overall do't break much [3]. [1] http://cikonss.zzapdeveloped.it/ [2] http://one-div.com/ (warning, hugely ad infested currently) [3] console: document.…
Re: Show HN: CSS ICON, an icon set crafted by pure CSS
#44This is blocked by my corporate proxy. Maybe because of the ".space" TLD?
Re: Show HN: CSS ICON, an icon set crafted by pure CSS
#45Why not just use SVG inside a data url? E.g., as in [1]. [1] https://en.wikipedia.org/wiki/Data_URI_scheme#Examples
css icon has less code, the code is more editable and managable, argumentably better performance (because i haven't tested it) in the intro youtube video I said more about that. But to be honest, I just had a lot of fun dealing with the constraints that comes with css and loved the creating process, I spent a few weekends keeping designing and coding those tiny icons and skipped a lot of sleeping and still had fun.
Re: Show HN: CSS ICON, an icon set crafted by pure CSS
#46My concern is the burden this seems to place on hardware. By which I mean that loading the page into my browser (Firefox) and letting it sit for a minute spun up my laptop fan to an audible level and warmed one of my quadriceps.
Re: Show HN: CSS ICON, an icon set crafted by pure CSS
#47My concern is the burden this seems to place on hardware. By which I mean that loading the page into my browser (Firefox) and letting it sit for a minute spun up my laptop fan to an audible level and warmed one of my quadriceps.
Something on that page is definitely gobbling up CPU. I barely get 10fps when scrolling.
Re: Show HN: CSS ICON, an icon set crafted by pure CSS
#48Re: Show HN: CSS ICON, an icon set crafted by pure CSS
#49Why not the character "+" instead of tracing two vertical/horizontal bars?
Re: Show HN: CSS ICON, an icon set crafted by pure CSS
#50Earlier quoted context omitted.
The painting performance should be pretty similar for both CSS and SVG: they both get rasterized via the same 2D vector graphics backend in popular browser engines. Most 2D vector graphics backends go to a lot of effort to cull invisible regions. CSS icons may be slightly slower than an optimized SVG due to the overhead of restyling and layout. Also, the browser-side painting may be a bit slower for CSS icons, becaus…
this is awesome analyze, thanks!