Questions tagged [polyfills]

Downloadable code used to add new functionality to browsers.

890 questions
-2
votes
3 answers

Polyfill for Math.max to make it useable for older browsers/systems

I am using the Math.max function but it is not available on all devices and browsers. Is there a Polyfill or an other easy and fast way to solve this?
Tim Jansen
  • 151
  • 1
  • 1
  • 9
-2
votes
1 answer

What is the best polyfill for requestAnimationFrame out there?

I want to use requestAnimationFrame on my mobile web application but also support browsers. Please advise me the best polyfill for requestAnimationFrame out there.
Erik
  • 14,060
  • 49
  • 132
  • 218
-2
votes
1 answer

Why does vminpoly not work for ie8 and below?

What im trying to use is a polyfill for the new vw unit. My question is however why it not works in ie8 and below. The developer says all browsers ie5 - 8 are supported...including opera mini... This is the link to the script. It includes a demo…
-3
votes
2 answers

What does comma operator do in this polyfill from MDN?

MDN's polyfill for Function.prototype.bind (pasted below), uses the comma operator. Since the comma operator returns the last operand, and the first operand (oThis) doesn't do anything (like call a function, or make an assignment), it looks to be…
Chris
  • 6,805
  • 3
  • 35
  • 50
-4
votes
1 answer

How can I make setTimeout work with negative numbers?

I can use setTimeout to make a message show up three seconds after I click a button, like this: document.getElementsByTagName("button")[0].onclick = function() { setTimeout(function() { alert("You clicked the button three seconds ago."); …
Peter Olson
  • 139,199
  • 49
  • 202
  • 242
1 2 3
59
60