[Issue 15470] Unnecessary markup in ddoc's html generation

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Dec 23 07:25:01 PST 2015


https://issues.dlang.org/show_bug.cgi?id=15470

Andrei Alexandrescu <andrei at erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrei at erdani.com

--- Comment #5 from Andrei Alexandrescu <andrei at erdani.com> ---
We can do some of these with relative ease bot some others are likely to be
difficult. In particular,

<td><span class="d_inlinecode donthyphenate notranslate">float.nan</span></td>

is an artifact of how generation occurs, first the code font is expanded then
the table tag is expanded. Merging those two is nontrivial with what we have.

I'll add that we generate a few tags that are in fact optional, see the list at
http://www.w3.org/TR/2011/WD-html5-20110525/syntax.html#optional-tags.

All of these issues in aggregate, including whitespace, would add to some
inefficiency. I think it may be unmeasurable or difficult to measure, and at
best add only to a couple percent. Certainly at this point "all of these things
can account for slower page loads, which can impact page ranking in search
engines" is pure speculation.

Do we want nice tight generated HTML? Somewhat. Does fixing this issue help?
Yes. Do we want fast-loading pages? Yes. Does fixing this issue help? Unlikely
to make any sensible improvement.

--


More information about the Digitalmars-d-bugs mailing list