Skip to content

code-organization/feature-browser-detection: refresh post #616

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

Closed
wants to merge 1 commit into from

Conversation

arthurvr
Copy link
Member

See #610. This does some little tweaks to refresh the article to 2015 vintage. Also this removes deprecated content in this article: Modernizr.load, yepnope, $.support, ...

The article is in no way complete after this, but at least it removes/replaces the really outdated stuff.

Using the `load` method allows us to send only the required polyfills and code over the wire. You can also pass an array of objects as an argument to `.load()`, and it will serve the correct files to the correct audience.

Additionally, Modernizr has a [production build configurator](http://modernizr.com/download/) that allows you to specify exactly what parts of Modernizr you want to include and exclude the parts you don't.
If you're using Modernizr, we highly encourage you to use the [build configurator](http://modernizr.com/download/), a tool that allows you to create custom builds of the library. You can exclude checks you don't need, which might save you quite a bunch of bytes.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"...which will save bytes and reduce the time it takes the page to load. Running every check that Modernizr can do, even when you don't need them, can slow down the page load."

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, that's better. Updating PR

@dmethvin
Copy link
Member

Otherwise LGTM 👍

@arthurvr arthurvr force-pushed the featureDetectionUpdate branch from 3c64a51 to 0a0d2f1 Compare January 21, 2015 19:23
@arthurvr arthurvr closed this in 3629503 Jan 21, 2015
@arthurvr arthurvr deleted the featureDetectionUpdate branch January 21, 2015 19:32
Krinkle pushed a commit that referenced this pull request Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants