Skip to content
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

Decide on use of Modernizr #525

Closed
jessetan opened this issue Dec 22, 2017 · 14 comments
Closed

Decide on use of Modernizr #525

jessetan opened this issue Dec 22, 2017 · 14 comments
Labels
Needed: design decision A core team decision is required

Comments

@jessetan
Copy link
Contributor

In #518 the use of Modernizr for the theme was questioned. If we can remove this, it would make the build a bit simpler and the output a bit smaller.

  • If the feature detection is not used by the theme, is it still needed to include Modernizr?
  • If we do need Modernizr, do we need the kitchen sink build currently included?
@jessetan jessetan added the Needed: design decision A core team decision is required label Dec 22, 2017
@ghost
Copy link

ghost commented Dec 30, 2017

According to #248, Modernizr was only included for old IE support. I've personally removed it from my project and haven't noticed any issues.

@Blendify
Copy link
Member

I say remove it. But would let @agjohnson again have the final word.

@davidfischer
Copy link
Contributor

Just to chime in with a bit of data, IE versions before 11.0 are less than 0.2% of traffic (Nov 1 through today) on readthedocs.io according to GA.

This might be a good time to formalize our browser support policy.

@Blendify
Copy link
Member

Blendify commented Jan 18, 2018 via email

@jessetan
Copy link
Contributor Author

@davidfischer Is the 0.2% traffic for the documentation RTD itself or for all the documentation hosted by RTD?

We can keep IE<9 support for the HTML5 elems by just using the htmlshiv in the head and removing the rest of Modernizr. We do not use any of the feature detection stuff in Modernizr.

A formal browser support policy would help. Old IE support is already iffy because the theme uses jQuery which does not work on IE<9. I don't know how much more broken the theme would be if we would also remove the htmlshiv, but we can try to see what happens.

@davidfischer
Copy link
Contributor

I missed this but the 0.2% is for all docs sites hosted by Read the Docs. Essentially nobody visiting RTD is using IE<11 now. IE11 is still close to 2%.

@Blendify
Copy link
Member

I think it is safe to remove this now.

@davidfischer
Copy link
Contributor

I we are just including it for IE<11, then it is safe to remove. Do we know precisely which detects we use if any?

@jessetan
Copy link
Contributor Author

@davidfischer we use none of the detects of Modernizr.
It does include html5shiv for IE6-9. We also include our own shim for requestAnimationFrame for IE 9 and lower.

If we (and the RTD org) do not wish to support IE<11, then we can do a big cleanup.

@davidfischer
Copy link
Contributor

Consider me +1 then. I'm fine dropping support for IE<11 as virtually no users use those old versions.

I do believe that dropping support should involve incrementing the version to 0.4.0 though. We also should be explicit in the docs about which browsers are supported.

@jessetan
Copy link
Contributor Author

jessetan commented Apr 26, 2018

We also should be explicit in the docs about which browsers are supported.

I agree, but such a statement for the theme depends on a statement for the entire RTD service (which I couldn't find, ping @ericholscher @agjohnson). We should not build a theme that only works on the latest browsers if the goal of RTD is to also support legacy browsers.
This could also affect which options we use for MathJax.

@agjohnson
Copy link
Collaborator

agjohnson commented Apr 26, 2018

I don't have time at the moment to research some of the ramifications of dropping modernizer, but to put into perspective: even though 0.2% sounds low, the real number behind this is 700k+ pageviews a year. This number is more significant than the portion of our traffic probably. I'd like to figure out what sort of experience those 700k+ pageviews would have before dropping support for them.

If no one gets to it before I do, I'm just going to test the theme via saucelabs and an ancient browser/os combo. I'm curious what the page and nav content will look like. If it's at least usable, I think we can sacrifice the dependency on modernizer.

@jessetan jessetan mentioned this issue May 1, 2018
9 tasks
@jessetan
Copy link
Contributor Author

jessetan commented May 1, 2018

I've created a branch in #624 suitable for testing with older browsers.

@Blendify
Copy link
Member

Eeek Modernizr was removed a long time ago, time to close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needed: design decision A core team decision is required
Projects
None yet
Development

No branches or pull requests

4 participants