diff --git a/assets/js/postmessage.js b/assets/js/postmessage.js
index <HASH>..<HASH> 100755
--- a/assets/js/postmessage.js
+++ b/assets/js/postmessage.js
@@ -25,6 +25,7 @@
                     }
                 }, _base_url);
             },
+            _hasParent = ('' !== _parent_url),
             $window = $(window),
             $html = $('html');
 
@@ -58,8 +59,14 @@
                 // Post height of a child right after window is loaded.
                 $(window).bind('load', function () {
                     FS.PostMessage.postHeight();
-                });
 
+                    // Post message that window was loaded.
+                    FS.PostMessage.post('loaded');
+                });
+            },
+            hasParent : function ()
+            {
+                return _hasParent;
             },
             postHeight : function (diff, wrapper) {
                 diff = diff || 0;
[post-message] [bug-fix] Fixed issues after bad file merge.