I took the Bubble chart visualization from Jim Vallandingham: http://vallandingham.me/vis/gates/ and added a few other features such as: a picture over svg, a click function, option to select only one year and have the others disappear. While I was comparing the load time of the wepage, I noticed that it takes almost 4 times longer to load the webpage with the modified script as it does with the original. I can't understand what can be giving it this slowing down of the load. But I'm surely looking for a solution to speed up my modified version.
The original script is at Jim Vallandingham web
The modified script: http://www.qsvlore.com/ft/viz-bsf.html
Any help would be very much appreciated. Thank you