progressive-enhancement

What is Progressive Enhancement?

北战南征 提交于 2019-11-27 13:33:45
Jeff mentioned the concept of 'Progressive Enhancement' when talking about using JQuery to write stackoverflow. After a quick Google, I found a couple of high-level discussions about it. Can anyone recommend a good place to start as a programmer. Specifically, I have been writing web apps in PHP and would like to use YUI to improve the pages I am writing, but a lot of them seem very JavaScript based, with most of the donkey work being done using JavaScript. To me, that seems a bit overkill, since viewing the site without Javascript will probably break most of it. Anyone have some good places

Detecting support for a given JavaScript event?

做~自己de王妃 提交于 2019-11-27 01:21:18
I'm interested in using the JavaScript hashchange event to monitor changes in the URL's fragment identifier. I'm aware of Really Simple History and the jQuery plugins for this. However, I've reached the conclusion that in my particular project it's not really worth the added overhead of another JS file. What I would like to do instead is take the "progressive enhancement" route. That is, I want to test whether the hashchange event is supported by the visitor's browser, and write my code to use it if it's available, as an enhancement rather than a core feature. IE 8, Firefox 3.6, and Chrome 4.1

What is Progressive Enhancement?

筅森魡賤 提交于 2019-11-26 18:18:55
问题 Jeff mentioned the concept of 'Progressive Enhancement' when talking about using JQuery to write stackoverflow. After a quick Google, I found a couple of high-level discussions about it. Can anyone recommend a good place to start as a programmer. Specifically, I have been writing web apps in PHP and would like to use YUI to improve the pages I am writing, but a lot of them seem very JavaScript based, with most of the donkey work being done using JavaScript. To me, that seems a bit overkill,

Detecting support for a given JavaScript event?

耗尽温柔 提交于 2019-11-26 09:37:20
问题 I\'m interested in using the JavaScript hashchange event to monitor changes in the URL\'s fragment identifier. I\'m aware of Really Simple History and the jQuery plugins for this. However, I\'ve reached the conclusion that in my particular project it\'s not really worth the added overhead of another JS file. What I would like to do instead is take the \"progressive enhancement\" route. That is, I want to test whether the hashchange event is supported by the visitor\'s browser, and write my

Best way to detect that HTML5 <canvas> is not supported

喜欢而已 提交于 2019-11-26 04:05:23
问题 The standard way to deal with situations where the browser does not support the HTML5 <canvas> tag is to embed some fallback content like: <canvas>Your browser doesn\'t support \"canvas\".</canvas> But the rest of the page remains the same, which may be inappropriate or misleading. I\'d like some way of detecting canvas non-support so that I can present the rest of my page accordingly. What would you recommend? 回答1: This is the technique used in Modernizr and basically every other library