Questions tagged [graceful-degradation]

Graceful-Degradation is the term used to describe the encapsulation of API specific calls such that your application can support the widest range of users. It's often used to provide the newest features to up-to-date devices while maintaining backward compatibility for older devices.

Graceful-Degradation is the term used to describe the encapsulation of API specific calls such that your application can support the widest range of users. It's often used to provide the newest features to up-to-date devices while maintaining backward compatibility for older devices.

118 questions
142
votes
8 answers

Best way to detect that HTML5 is not supported

The standard way to deal with situations where the browser does not support the HTML5 tag is to embed some fallback content like: Your browser doesn't support "canvas". But the rest of the page remains the same, which may…
65
votes
7 answers

What is the difference between progressive enhancement and graceful degradation?

I'm confused on what the difference is between progressive enhancement and graceful degradation. To me they seem like the same thing. Can you please explain to me the differences between the two and in which situation I would use one over the other?
zeckdude
  • 15,877
  • 43
  • 139
  • 187
36
votes
4 answers

How Does Rails 3's "data-method='delete'" Degrade Gracefully?

Rails 3 does some cool stuff to make Javascript unobtrusive, so they've done things like this: = link_to "Logout", user_session_path, :method => :delete ..converts to Logout But it just…
23
votes
2 answers

Hybrid page-based / single-page web-app (Angularjs, Ember.js) with progressive enhancement?

I'm wondering if anyone has found a solution to this problem. Is there a way to get the best of both worlds: build a page-based site, with permanent links, accessibility, SEO, and graceful fallback / progressive enhancement (basically all the best…
22
votes
6 answers

In 2011 is it truly necessary to still degrade js?

Serious question. I tried most of the famous websites (including facebook) and I can say that tons of functionality doesn't degrade at all with js disabled. I've been always told that js should degrade gracefully, but does this still applies in…
0plus1
  • 4,475
  • 12
  • 47
  • 89
17
votes
1 answer

Detecting geo-uri-support

Is there a way with JavaScript to check whether the client-browser supports the GEO-URI-scheme? I want to show a coordinate for nonsupported browsers as a link to a map Berlin and for…
14
votes
6 answers

How to write backwards compatible HTML5?

I'd like to start using HTML5's basic features, but at the same time, keep my code backwards compatible with older browsers (graceful degradation). For instance, I'd like to use the cool CSS3 properties for making rounded corners. Is there any…
Olivier Lalonde
  • 19,423
  • 28
  • 76
  • 91
14
votes
2 answers

Detecting pinch in Android

I would like to handle pinch events in my Android application to zoom in and out. I believe Android 2.0 has multi-touch functionality, and heard that Android 1.6 might or might not support it depending of the device. What's the best way to detect…
hpique
  • 119,096
  • 131
  • 338
  • 476
13
votes
6 answers

AJAXify site

I have legitimate reasons to do what I am trying to explain. I have an existing site say abc.com which has regular pages etc. everything written in php. Now I would like to AJAXify the site i.e. when a user clicks on a link, it should fetch the link…
Alec Smart
  • 94,115
  • 39
  • 120
  • 184
12
votes
1 answer

graceful shutdown asp.net core

Coming across very outdated information on graceful shutdown of the asp.net core application, can someone fill in with the updated info. Usecase: I'd like to unregister with consul on application exit. public static IWebHostBuilder…
AppDeveloper
  • 1,816
  • 7
  • 24
  • 49
12
votes
5 answers

Python: Pickling a dict with some unpicklable items

I have an object gui_project which has an attribute .namespace, which is a namespace dict. (i.e. a dict from strings to objects.) (This is used in an IDE-like program to let the user define his own object in a Python shell.) I want to pickle this…
Ram Rachum
  • 84,019
  • 84
  • 236
  • 374
11
votes
15 answers

Is graceful degradation in the absence of JavaScript still useful?

When even mobile browsers have JavaScript, is it really necessary to consider potential script-free users?
leeand00
  • 25,510
  • 39
  • 140
  • 297
10
votes
7 answers

How do I refer to Java 1.6 APIs while degrading gracefully against Java 1.5?

I would like to use the java.text.Normalizer class from Java 1.6 to do Unicode normalization, but my code has to be able to run on Java 1.5. I don't mind if the code running on 1.5 doesn't do normalization, but I don't want it to give…
Simon Nickerson
  • 42,159
  • 20
  • 102
  • 127
9
votes
8 answers

HTML radio buttons: hide bullets

I want a particular form component to act as radio buttons (only one option may be selected at a time). I do not want the radio bullets to show, however, opting for alternative presentational methods such as high light selected, or some other…
9
votes
4 answers

CSS fallback for OpenType small caps

I'm working on a site where small caps are important: setting the text of the Bible. In the Old Testament the name of God is transliterated as Lord but in small caps—not LORD. However, the state of OpenType small caps support at the moment is… less…
Chris Krycho
  • 3,125
  • 1
  • 23
  • 35
1
2 3 4 5 6 7 8