diff --git a/js/ebi-global-includes/script/4_ebiFrameworkContent.js b/js/ebi-global-includes/script/4_ebiFrameworkContent.js
index fb6cdeb278d1d4e68b6ccd04b8eea4fa46f74376..c12a6b0598c25ab98022a43a128569a9552614b1 100644
--- a/js/ebi-global-includes/script/4_ebiFrameworkContent.js
+++ b/js/ebi-global-includes/script/4_ebiFrameworkContent.js
@@ -422,14 +422,21 @@ function ebiFrameworkIncludeAnnouncements() {
     if (window.XMLHttpRequest) {
       xmlhttp=new XMLHttpRequest();
     }
-    xmlhttp.onreadystatechange=function() {
-      if (xmlhttp.readyState==4 && xmlhttp.status==200) {
-        eval(xmlhttp.responseText);
-        detectAnnouncements(m);
+    xmlhttp.open("GET", file, true);
+    xmlhttp.onload = function (e) {
+      if (xmlhttp.readyState === 4) {
+        if (xmlhttp.status === 200) {
+          eval(xmlhttp.responseText);
+          detectAnnouncements(m);
+        } else {
+          console.error(xmlhttp.statusText);
+        }
       }
-    }
-    xmlhttp.open("GET", file, false);
-    xmlhttp.send();
+    };
+    xmlhttp.onerror = function (e) {
+      console.error(xmlhttp.statusText);
+    };
+    xmlhttp.send(null);
   }
 
   if (window.location.hostname.indexOf('wwwdev.') === 0) {