1
0
-1

For several months there has been a bug that prevents the main menu from loading, at least on the initial page hit. It's happening on my website as well as RG's portal, so I assume the issue is widespread and affects a number of rescues.

The root cause is that a JS file necessary to properly load the menu is being blocked by modern browsers because it is invoked via document.write. Basically, it's an outdated method and browsers have started to enforce various policies for security. Thus, the JS file doesn't load on the initial page hit.

A simple and effective workaround is to place the contents of the JS file in the head of your website. This is something anyone can do and it will resolve the problem.

In your RG portal:

  1. Website > HTML Head > edit
  2. Under Page Header HTML paste the code I've provided below exactly as shown
    1. If you already have content in Page Header HTML, place the script below the last line of your existing code
<script>
var TM1a=navigator.userAgent.indexOf('Gecko')>-1||(window.opera&&document.appendChild)?'':window.opera?'width:1;':'width:1;height:1;';document.write('<style>.mlyri{',TM1a,'position:absolute;left:0;top:0}.mlyrh{',TM1a,'position:absolute;left:0;top:0;visibility:hidden}</style>');function TMl(){var TMQ=navigator.appVersion.indexOf('Mac')>-1;this.TMS=navigator.userAgent.indexOf('Safari')>-1;this.TMP=navigator.userAgent.indexOf('MSIE')>-1;this.TMR=TMQ&&this.TMP;this.TM09=document.all?function(TM2){return document.all[TM2]}:function(TM2){return document.getElementById(TM2)};if(TMQ&&navigator.userAgent.indexOf('MSIE 4')>-1)this.TM1d='onLoad';this.TMu=this.TMS?function(n,TM0E,TM0F,TMU){var TM1m={'x':TM0E,'y':TM0F};for(;n;n=n.offsetParent){TM1m.x+=n.offsetLeft;TM1m.y+=n.offsetTop};if(!TMU){if(document.body.leftMargin)TM1m.x-=document.body.leftMargin*1;if(document.body.topMargin)TM1m.y-=document.body.topMargin*1;}return TM1m;}:TMQ?function(n,TM0E,TM0F){var TM1m={'x':TM0E,'y':TM0F};for(;n;n=n.offsetParent){TM1m.x+=n.offsetLeft;TM1m.y+=n.offsetTop};if(document.body.leftMargin)TM1m.x+=document.body.leftMargin*1;if(document.body.topMargin)TM1m.y+=document.body.topMargin*1;return TM1m;}:function(n,TM0E,TM0F){var TM1m={'x':TM0E,'y':TM0F};for(;n;n=n.offsetParent){TM1m.x+=n.offsetLeft;TM1m.y+=n.offsetTop};return TM1m;};this.TMv=function(TM1D,TMe){TM1D.style.visibility=TMe?'visible':'hidden'};this.TMw=function(TM1D,TMh){TM1D.style.left=TMh.x+'px';TM1D.style.top=TMh.y+'px';};this.TMt=window.opera&&!document.appendChild?function(TM1D,TMk){return TM1D.style[TMk?'pixelHeight':'pixelWidth']}:function(TM1D,TMk){return TM1D[TMk?'offsetHeight':'offsetWidth']};}function TM0(TMc){var TMT=false,TM1D;for(var TM2 in menus)if(menus[TM2].TM0L!=null)TMT=true;if(TMT&&TMc)return;for(TM2 in this.TM6)if(TM1D=TM1E.TM09(this.TM6[TM2]))TM1D.style.visibility=TMc?'visible':'hidden';}function TM0_(TM_){var TM1B=this.TM9[0],TMD=TM1B.TM0A('table'),TM1b;if(TM_){var TM0y=TM1B.TM0A('block_top'),TM0u=TM1B.TM0A('block_left'),TM1W='';if(TM0y!=null||TM0u!=null)TM1W=';top:'+TM0y+';left:'+TM0u;if(top!=window&&!this.TM0H||this.TMW)TM1W+=';visibility:hidden';document.write('<div',TM1W?' class=mlyri style="z-index:'+(this.TM13+this.TMi+1)+TM1W+'"':'');TM1b='m'+this.TM1O.id+'m';}else{document.write('<div class=mlyrh onmouseout="menus[\'',this.TM1O.id,'\'].exec(\'',this.id,'\',1)" onmouseover="menus[\'',this.TM1O.id,'\'].exec(\'',this.id,'\',2)" style="z-index:',this.TM1O.TM13+this.TMi+1,'"');TM1b='m'+this.TM1O.id+'c'+this.id;}document.write(' id="',TM1b,'"><table cellpadding="',TMD[0],'" cellspacing="',TMD[1],'" border="',TMD[2],'" class="',TM1B.TM08('table'),'" id="m',this.TM1O.id,'t',this.id,'"><tr>',this.TM1l.join(''),'</tr></table></div>');this.TM15=TM1E.TM09(TM1b);if(TM1E.TMI||(window.opera&&!document.appendChild)){var TM1Q=TM1E.TM09('m'+this.TM1O.id+'t'+this.id);this.TM15.style.width=TM1Q.offsetWidth;}}function TM0X(w,h){var s='<td width="'+w+'"><div style="position:relative;width:'+w+';height:'+h+'">',TM1X=TM1E.TMI||window.opera?' onmousemove="menus[\''+this.TM1O.id+'\'].exec(\''+this.id+'\',2)"':'';for(var TM2=0;TM2<3;TM2++)s=[s,TM2?'<div class=mlyrh id="m'+this.TM1O.id+'i'+this.id+'o'+TM2+'">':'','<table cellpadding="0" cellspacing="0" border="0" width="',w,'" height="',h,'" class="',this.TM08('outer',TM2),'"><tr><td class="',this.TM08('inner',TM2),'">',this.TM03(typeof(this.TM4[0])=='object'?this.TM4[0][TM2]:this.TM4[0],TM2),'</td></tr></table>',TM2?'</div>':''].join('');return[s,'<div class=mlyri><a href="',this.TM4[1]?this.TM4[1]:'','"',this.TM19.tw?' target="'+this.TM19.tw+'"':'',' onclick="return menus[\'',this.TM1O.id,'\'].exec(\'',this.id,'\',0)" onmouseout="menus[\'',this.TM1O.id,'\'].exec(\'',this.id,'\',1)" onmouseover="menus[\'',this.TM1O.id,'\'].exec(\'',this.id,'\',2)"',TM1X,'',this.TM19.ti!=null?' tabindex="'+this.TM19.ti+'"':'','><img src="',TM1E.TM1T,'" width="',w,'" height="',h,'" border="0"',this.TM19.tt?' alt="'+this.TM19.tt+'"':'','></a></div></div></td>',this.TMH[this.TMi]!=this.TM1M.TMg-1&&this.TM1M.TM9[0].TMd?'</tr><tr>':''].join('');}function TM0c(){this.elements=[];for(var TM2=1;TM2<3;TM2++)this.elements[TM2-1]=TM1E.TM09('m'+this.TM1O.id+'i'+this.id+'o'+TM2);}function TM0e(TM1j){if(this.TM1j!=null&&TM1j==this.TM1j)return;if(this.TM1j)TM1E.TMv(this.elements[this.TM1j-1]);if(TM1j)TM1E.TMv(this.elements[TM1j-1],true);this.TM1j=TM1j;}function TM0Y(TM1q){if(this.TM15){TM1E.TMv(this.TM15);for(var TM2=0;TM2<this.TM9.length;TM2++)this.TM9[TM2].TM1h(0);}if(TM1q>=this.TMi){if(this!=this.TM1O.TM1I&&this.TM1h)this.TM1h(0);}else this.TM1M.collapse(TM1q);}function TM0Z(){if(this.TM1O.TM00&&!this.TM1O.TM0L)this.TM1O.TM00();if(!this.TM1O.TM0L&&TM1E.TMp)TM1E.TMv(TM1E.TMp,true);if(this.TM1O.TM0L&&this.TMi<=this.TM1O.TM0L.TMi)this.TM1O.TM0L.collapse((this.TM1O.TM0L.TM1M==this)*1+this.TMi);this.TM1O.TM0L=this;if(this.TM15){this.TM1U();if(!TM1E.TMI)this.TM1O.TM1g();TM1E.TMv(this.TM15,true);}}
</script>


    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Here's a screenshot of where you will insert the code.

        CommentAdd your comment...