I am currently developing an admin-panel for adding and removing vertices from a graph. I have three large "network"-graphs with around 500 nodes each, which I load and build without problems. Now, only one is shown graphically in HTML5. Creating all the HTML5 objects for the graph is quite time consuming (around 5 seconds or something). The graphs might grow in a future and this time might increase. While building graph UI, the website is not responsive and I am trying to solve this. I have used 'setTimeout', but not with the expected results.
I was wondering if it was possible to build a javascript-Object in an external file that can be then called with ajax? Please note that my object to build is from a javascript function and HTML5 based!
Thank you.