During the optimization of my web application, I encountered a challenge with parsing JSON data in large quantities. The data consisted of up to 1000 objects with hundreds of attributes each, causing the eval function to take a significant amount of time to process. After researching online and consulting resources like StackOverflow, I discovered a different approach for fetching JSON data from the server called 'Dynamic Javascript include'.
Using Javascript include significantly sped up the JSON parsing process, as affirmed by various blogs (validated through console logs in firebug). However, I noticed a considerable delay between the completion of JavaScript downloading and the execution of the script itself, sometimes resulting in a delay as long as 6 to 7 seconds. Can anyone shed light on why this delay occurs and suggest possible solutions?