[tor-bugs] #11563 [DocTor]: Improve consensus-health page by reducing size of HTML

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Apr 19 19:32:43 UTC 2014


#11563: Improve consensus-health page by reducing size of HTML
-----------------------------+------------------------------
     Reporter:  alphawolf    |      Owner:  atagar
         Type:  enhancement  |     Status:  new
     Priority:  normal       |  Milestone:
    Component:  DocTor       |    Version:
   Resolution:               |   Keywords:  consensus-health
Actual Points:               |  Parent ID:
       Points:               |
-----------------------------+------------------------------

Comment (by alphawolf):

 Agreed on the leading spaces.  Patch submitted, but needs tested.

 I have an idea for a "part 4", but I'll need to test it in HTML/CSS first.
 There are over 240K '<br>' tags, mostly between the flags in the relay
 list.  I believe these could be replaced with a single newline each, and
 then CSS applied to make those newlines actually render. (In the relay
 table only).  This change would shave off another 720 KB.

 The downside of "part 4" is that it would be a little harder for humans to
 read the HTML source, as each flag in source view would be on its own
 line.  Thoughts?

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/11563#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list