Comments (5)
haha i knew this would happen. :)
so there are two factors of the overhead. stylesheet parsing and superfluous XHRs. the XHR should mostly be mitigated if you have expires headers, but the parsing is a tricky beast and can break depending on certain syntactical constructs.
but since the issue is on perf.. i suppose the onus is on me to provide the perf evidence. will do.
from html5please.
Thanks for adding the issue, @davatron5000. As creator of the script, what I say can be taken with salt, but I'm also curious why a polyfill (there are several) wouldn't be good advice here. I'll try and explain.
Paul, I'm looking forward to seeing what you come up with for performance, but I'm not sure what we're comparing Respond's performance to: other media query polyfills? To not using a polyfill at all?
I think we can all agree that running Respond.js is going to be slower - quite a bit slower perhaps if you're talking in milliseconds - than NOT running Respond.js. I've done a great deal of work optimizing Respond to run as fast as possible in IE, favoring version 8, and for what the benefits it brings to users, I'd suggest that it's fast. It's not native-fast, but for IE8 users, probably fast as they'd expect.
The question for html5please is whether the use of a polyfill should be recommended for CSS3 media queries.
According to StatCounter, IE8 is still listed as either the first or second most popular browser on the planet for the past 3 months, right behind our beloved Chrome Latest, and unlike IE 6 and 7, it's users don't appear to be on any auto-upgrade path.
If you view Responsive Design (mobile-first or not) as a benefit to users, and not merely a developer convenience for cross-device development, then why shut off all that usability goodness off for such a large percentage of potential audience?
from html5please.
(yes, i'm comparing it to not using a polyfill at all)
I'll have to get some data. In the meantime I'll strike this clause.
from html5please.
Thanks, Paul.
It's responsible to discuss whether a polyfill is worth its weight.
My criteria tends to be that polyfills are a cost that really have to be noticeable to the end user. Will people appreciate and notice the improved experience as a result of this feature addition, or is it just a shim to let me develop with newer standards behind the scenes?
I'll look forward to whatever you come back with to see if improvements can be made.
One thought:
If html5please's advice is going to remain that developers simply "make peace" with the lack of this feature in IE8 and less, I think it'd help to link to some resources on what that really means, particularly with a mobile-first layout. @adactio and @necolas have written about ways to avoid using a polyfill and still serve something usable to IE, but incorporating SASS or even cutting things up manually is different than doing nothing at all. If these resources are offered alongside a polyfill, developers can make an informed decision about what is best for their user base.
from html5please.
Closing issue as the performance penalty has been removed from the site.
from html5please.
Related Issues (20)
- Polyfills for @supports
- HTTPS please HOT 2
- Mid 2019 refreshment HOT 5
- Update @font-face
- Enable building PRs via netlify to preview Changes in the browser HOT 2
- Update box-shadow
- Update border-radius
- Update background-image options
- Update iframe-seamless
- Add fit-content
- Replace favicon
- Favicon is not loading: HOT 2
- update google analytics script HOT 3
- Remove IE6 and IE7 info HOT 7
- Fix/remove broken links
- Add a canonical URL
- Remove minmaxwh ? HOT 3
- Show moreurl and caniuse link together HOT 1
- The CSS for the site isn't minified
- The JS for the site isn't minified HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from html5please.