Weather-icons-lite

89 views
Skip to first unread message

Paul Reed

unread,
Nov 27, 2017, 8:49:49 AM11/27/17
to Node-RED UI
After a short discussion with Dave CJ a few days ago, I've created a new repo - https://github.com/Paul-Reed/weather-icons-lite which provides 57 weather icons and full CSS support for node-red's Wunderground, Darksky & OpenWeatherMap nodes.

The new 'essential files' are significantly smaller than 'weather-icons', for the following reasons;
  • The icon files have been optimized and edited to restrict the glyphs to Wunderground, Darksky & OpenWeatherMap.
  • SVG icon files have now been removed as they have been retired from modern browsers.
  • The CSS has been updated to reflect the above.
The resulting changes slim the loading as follows;

original weather-icons
Font files  474kb
CSS         149kb
TOTAL      523kb

weather-icons-lite
Font files  84kb
CSS         10kb
TOTAL      94kb

The repo can be simply cloned directly into the node-red shared folder (details in readme), but all that is really needed is the single CSS file & 4 corresponding font files.

These changes have significantly reduced the initial browser loading time, and time populating the app.cache, and hopefully may tempt Dave CJ to integrate them into node-red in the same way as Font Awsome has been added. 

I would appreciate feedback, improvements & comments.


Peter Scargill

unread,
Nov 27, 2017, 12:12:44 PM11/27/17
to Node-RED UI
All I can think of to say right now is --- well done!
Message has been deleted

Paul Reed

unread,
Nov 27, 2017, 3:58:20 PM11/27/17
to Node-RED UI
Thanks Pete.

- Moved this thread to Node-RED mailing group as I understand that this group is rarely used now.
Reply all
Reply to author
Forward
0 new messages