Dlang homepage (CSS files)
Seb via Digitalmars-d
digitalmars-d at puremagic.com
Tue Jun 14 10:57:54 PDT 2016
On Tuesday, 14 June 2016 at 16:54:12 UTC, Mattcoder wrote:
> I was taking a look over the network files during the page
> load, and there are some files that I think it should be
> integraded in just one file, for example the CSS.
>
> Look this network status: http://i.imgur.com/YhKcue5.png
>
> The print.css takes around ~700ms to download, and inside there
> are just these lines:
>
> body{background:white}pre{overflow:visible;overflow-X:hidden;font-size:100%}#search-box,#header,#navigation,#lastupdate,#tools,#footernav,#copyright,#github-ribbon,#top,.page-contents{display:none}div#content{background:white;border:0;margin:0;padding:0;font-family:serif;font-size:10pt}
>
> Integraded or even should be inline in the HTML.
Great catch!
The place to start hacking would be here:
https://github.com/dlang/dlang.org/blob/master/dlang.org.ddoc#L68
A quick guide:
https://github.com/dlang/dlang.org/blob/master/CONTRIBUTING.md
I have to warn you that ddoc isn't that intuitive in comparison
to other static content generators, it took me quite a while to
get used too.
Ping me (greenify) or CyberShadow in our #d IRC channel, if you
need help understanding the setup.
> The print.css takes around ~700ms to download
Speaking about the long download time, it would be quite awesome
if we can ship dlang.org via a CDN.
More information about the Digitalmars-d
mailing list