Hi!

Several years ago, I worked on a skin that would pass the "mobileOK" tests 
from W3C validator (because...why not?)
This validator is not available anymore, but it was build (I think) to 
match with network speed from "wap" age (that's old !!)

Anyway, it spent some funny time to find some tricks to reduce as much as 
possible the page weight.

I cleaned up the work, upload on github and tried to make a wee_extension 
script.

The skin is available here <https://github.com/bonjour81/weewx-ultralight>, 
and demo is here <https://www.meteosaintsulpice.fr/ultra/>

It looks like:

<https://i.ibb.co/ZXL0D79/screen-ultralight1.png>

It's not extremly fancy, but it need very very few kByte to open it (about 
10kB, even less depending on cache and/or by removing the favicons).

The trick is that it won't download the graphs until you open the menu you 
like to see, to save as much bandwidth as possible. 
The graphs are not that big, but each of them are ~10-30kB, so it's a few 
hundreds kB when opening them all together while you may only want to check 
yesterday rain.

It will probably look like a joke to your 3G, LTE, DSL or fiber modems, but 
it might be interesting if or when you have only a poor GPRS or any very 
slow connexions.

It will display on PC screen, but it was intended to be used on phone, so 
the layout may not be at its best on a very large screen.

Comments welcomes :-)






-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/6fa0adfe-b602-4018-a3e1-df9631aeee43%40googlegroups.com.

Reply via email to