diff --git a/source/Ox.UI/js/Core/Element.js b/source/Ox.UI/js/Core/Element.js index f195bf17..9cc9cf7a 100644 --- a/source/Ox.UI/js/Core/Element.js +++ b/source/Ox.UI/js/Core/Element.js @@ -130,9 +130,11 @@ self.messageCallbacks = self.messageCallbacks || {}; that.on({ load: function init() { - // send oxid to iframe - that.postMessage({init: {oxid: that.oxid}}); - self.initTimeout = setTimeout(init, 25); + if (that.attr('src')) { + // send oxid to iframe + that.postMessage({init: {oxid: that.oxid}}); + self.initTimeout = setTimeout(init, 250); + } } }).bindEvent({ init: function() {