-
-
Notifications
You must be signed in to change notification settings - Fork 449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Homepage does not serve valid html #2006
Comments
Other problems: https://validator.w3.org/nu/?doc=https%3A%2F%2Fjulialang.org%2F (maybe these are Franklin.jl bugs?) |
cc @tlienart |
The minifier that Franklin leans on is buggy and, in any case, github pages optimises stuff for us so it's not needed. In the context of #2006, it will help to disable it to see the generated HTML more clearly.
the landing page is actually not really handled by Franklin that much, the source of that page is mostly plain HTML https://github.com/JuliaLang/www.julialang.org/blob/main/index.html there are things that are off though, that First thing that can be done would be to disable the minifier by changing
to
this will have no impact other than un-garbling the HTML (which won't serve any slower as GH pages optimises things for us). #2013 I'll take a look at the rest when I can, some of these errors are simple to handle like the Edit yeah so removing the minifier helps, the |
The closing html tag being removed is most likely on purpose since it is an optional tag, see https://www.w3.org/TR/2014/REC-html5-20141028/syntax.html#optional-tags |
Yes. Dropping the closing tag is valid. However, also noting that the tag is present on other pages (e.g. https://www.julialang.org/downloads), that omitting the tag saves very little bandwidth, and that there are other issues that make the html invalid. |
Also, I think it's nice to serve valid XML if it's not too much trouble (and xml requires matched tags). |
I don't think we need a minifier, since the content is already being gzipped by fastly. See tlienart/Franklin.jl#836 (comment) and tlienart/Franklin.jl#927: the current minifier has correctness problems and causes more discussion time lost than loading times gained. You might benefit from a modern bundler but the unmaintained minifier that we use (last release 8 years ago) is not helping us 🙈 |
The minifier that Franklin leans on is buggy and, in any case, github pages optimises stuff for us so it's not needed. In the context of #2006, it will help to disable it to see the generated HTML more clearly.
curl https://www.julialang.org | grep "</html>"
, for example, reveals that the html tag is never closed.The text was updated successfully, but these errors were encountered: