diff --git a/src/iframeResizer.contentWindow.js b/src/iframeResizer.contentWindow.js
index <HASH>..<HASH> 100644
--- a/src/iframeResizer.contentWindow.js
+++ b/src/iframeResizer.contentWindow.js
@@ -903,6 +903,12 @@
 			}
 		}
 
+		function isFrameValid() {
+			return parseInt !== undefined;	
+		}
+
+		if(!isFrameValid()) return;
+
 		var	currentHeight,currentWidth;
 
 		if (isSizeChangeDetected() || 'init' === triggerEvent){
Adding check if window has any area (#<I>)

* Adding check if window has any area



* Improve test method



* is like function should return proper boolean



* Removing changes from js folder