I'm using this JS to create progress bars on my website : http://www.webappers.com/progressBar/
On some pages, I use those bars in tables. But for an unknown reason, the first time I load a page containing a table, only the bars are (partially) displayed, the rest of the document isn't rendered :
This is when the table has only 1 row, if there are many rows I then have many of these juxtaposed and the rest of the document is still empty.
Now if I load the page again (typing the URL by hand), it works fine, the table and all the document is rendered as it should. But if I refresh the page (CTRL+R), again the problem appears.
Any idea what is happening ? Using JS debugger (Chrome's one), I can see that the "display" function is called and the "document.write" for the bars is running ok. It just seems that after this the document rendering suddenly stops. No JS error is happening.
As suggested in comments, I should remove the "document.write" and replace it with something else. Any idea what will do the trick ?