A fallback is a design pattern useful in situations, when certain advanced functionality may be used only if certain conditions are met. If the conditions cannot be fulfilled, algorithm reverts to the so-called fallback function, which achieves the goal using less sophisticated methods.
Questions tagged [fallback]
465 questions
396
votes
5 answers
What is the meaning of polyfills in HTML5?
What is the meaning of polyfills in HTML5? I saw this word in many sites about HTML5, e.g. HTML5-Cross-Browser-Polyfills.
So here we're collecting all the shims, fallbacks, and polyfills
in order to implant HTML5 functionality in browsers that…
Jitendra Vyas
- 134,556
- 218
- 544
- 822
148
votes
10 answers
How to load local script files as fallback in cases where CDN are blocked/unavailable?
I’m using a CDN for the following…
raklos
- 26,260
- 55
- 172
- 278
37
votes
3 answers
WPF Binding FallbackValue set to Binding
Is there a way to have another binding as a fallback value?
I'm trying to do something like this:
If…
HaxElit
- 3,775
- 6
- 32
- 43
36
votes
8 answers
Catch any error in Python
Is it possible to catch any error in Python? I don't care what the specific exceptions will be, because all of them will have the same fallback.
user825286
33
votes
6 answers
How to use the I18n fallback features in Rails 3
I am getting an "translation missing" error message from Rails 3:
activerecord:
notices:
messages:
success:
create: "Something was created"
models:
user:
success:
create: "Thanks for…
antpaw
- 13,658
- 9
- 54
- 83
33
votes
2 answers
Fallback image and timeout - External Content. Javascript
What is the best way to set up a local fallback image if the external image does not load or takes too long to load.
Boris Smirnov
- 1,179
- 4
- 14
- 27
30
votes
2 answers
CSS calc not working in Safari and fallback
I have this layout I am working on.
It strongly depends on CSS calc to do the necessary calculations.
width: -webkit-calc(50% - 20px);
width: -moz-calc(50% - 20px);
width: calc(50% - 20px);
Now, I can't get this to work in Safari. Is there…
Nikk
- 5,862
- 5
- 30
- 61
23
votes
3 answers
flash fallback video black screen - no video, only audio media element
I just downloaded mediaelement.js from http://mediaelementjs.com.
Looks really good.
Though in the demo files, the videos won't play in IE 8.
The player is showing a black screen, but I can hear the audio.
I have also tried installing on a server…
Chemi
- 283
- 3
- 8
23
votes
4 answers
How to write css fallbacks for vh vw
Can anyone explain how fallbacks work in CSS? I am trying to set it up for vh and vw and clearly I am not getting it...
Here is my attempted solution, which does not work. The height property is taken every time.
CSS:
-webkit-height:…
user3311351
- 291
- 1
- 2
- 9
21
votes
4 answers
Detect if Angular dependencies [angular-route, angular-resource, etc] are loaded for CDN fallback
I'm using Angular JS on ASP.NET MVC 4 and I am using script bundles to load from a cdn and also load from the origin server in case of a cdn failure like so:
var jQuery = new ScriptBundle("~/bundles/scripts/jquery",
…
Mike Trionfo
- 1,127
- 7
- 11
15
votes
2 answers
Is there any good fallbacks for HTML5 and CSS3?
I'm looking for a good fallback for both HTML5 and CSS3 so I could use it and it would still look ok in other browsers.
josterberg
- 153
- 6
14
votes
4 answers
JavaScript Variable fallback
Please can someone explain to me what this line of code does:
var list = calls[ev] || (calls[ev] = {});
My best guess:
It's setting the variable "list" with the value of calls.xxx, where xxx is a variable, ev. If calls[ev] doesn't exist, then it's…
thugsb
- 19,348
- 6
- 28
- 43
14
votes
6 answers
TouchID forward to system passcode authentication
I want to use TouchID authenticate my own app.
1.I want user can click 'Enter passcode' to invoke system build-in passcode screen to authenticate,if success then enter my own app.
But I don't how know to make it forward to passcode authenticate…
eric
- 261
- 1
- 4
- 11
14
votes
6 answers
Fallback (default) image using Angular JS ng-src
I'm trying to set an image source using data returned from a modal. This is inside an ng-repeat loop: