The browser doesn't react after aborting the grids

I have four dhtmlx grids on one page.
Here is how I abort them.

myGrid1.xmlLoader.xmlDoc.abort();

And after this line of code, the grid is aborted and I redirect to another page. But, the browser doesn’t react for a long time afterwards (sometimes even 5 seconds). I have to wait for the second page to load for a long time. What is the reason for this? How to solve it?

Unfortunately the issue cannot be reconstructed locally.
Please, provide a sample of your code to reconstruct the issue.

There is no need for a sample.
Just tell me to how to abort the creation of the grid.

Please, just try not to load the function with the init of the needed grid.