Skip to content
This repository was archived by the owner on May 20, 2020. It is now read-only.

Switch away from js generated everything #1

Closed
est31 opened this issue Jun 17, 2017 · 2 comments
Closed

Switch away from js generated everything #1

est31 opened this issue Jun 17, 2017 · 2 comments

Comments

@est31
Copy link

est31 commented Jun 17, 2017

I see that this rewrite uses ember. That's pretty sad as it means that when you open a link, a non trivial amount of javascript has to run before the browser can even start to render the page. I don't demand a js free mode (as in, all features working with js disabled), just ember is using js for a purpose that user agent scripting wasn't actually designed for, and therefore the end result sucks pretty bad.

As a negative example, I just look at crates.io, which has heavy use of js modifying the DOM as well, and this leads to weird bugs like rust-lang/crates.io#306, as well as laggy behaviour in general.

I know this is right now a bit hand wavery, but I wanted to point this out early in the process where a switch is hopefully still very cheap.

@est31
Copy link
Author

est31 commented Jun 18, 2017

hmmm from IRC @QuietMisdreavus told me that the goal was to get web developers to work on the tool. This is in fact a great idea! Will it be the default output mode of cargo doc though?

@steveklabnik
Copy link
Owner

This is far too early to have real discussions about this, and it shouldn't be in an issue anyway.

Yes, the idea is that you can have a non-JS renderer if you want to.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants