Intermittent Blank Grids in Production

We’ve had this problem for a while, but it seems to have become worse.

Basically, something happens and every dhtmlx grid thereafter displays blank, no rows.

I believe, but I’m not 100% certain, that this error accompanies the start of the problem:

TypeError: Result of expression ‘this.entBox.parentNode’ [null] is not an object.

This error occurs if script cannot find id of grid container on the page. Try to move code of grid initialization to the body “onload” event:

<body onload="doOnLoad()"> ... function doOnLoad(){ // init grid here }

The thing is, the grids work 99% of the time (all the init occurs in onload). This is a heavily used app.

Any ideas why it might occasionally happen? Could networking problems cause it?

Also, after the grid becomes blank, ALL dhtmlx grids thereafter are blank until a full page reload.

Probably page is loaded too slow so by the time of grid initialization grid container is not rendered yet.

And that would cause all the other grids to load blank also?