diff --git a/resources/display-frame-rate.js b/resources/display-frame-rate.js
index <HASH>..<HASH> 100644
--- a/resources/display-frame-rate.js
+++ b/resources/display-frame-rate.js
@@ -8,6 +8,10 @@
     return;
   }
 
+  if (!window.requestAnimationFrame) {
+    return;
+  }
+
   var fpsElement = document.createElement('span');
   fpsElement.style.color = 'white';
Phantomjs does not have requestAnimationFrame