jacekkow / mpk-ttss

Improved www.ttss.krakow.pl
BSD 3-Clause "New" or "Revised" License
81 stars 12 forks source link

Local countdown #12

Open p0358 opened 6 years ago

p0358 commented 6 years ago

Please review.

jacekkow commented 6 years ago

I would like to see such changes:

This would lower both number of modifications and additional code required - pretty much only function for setting status text and proper className should be extracted and used).

As you have stated - updating half of the DOM tree every second is no good.

It would also be unnecessary DOM updating every second without any visual change.

Thanks for the contribution!