collected from stackoverflow High Level Summary of Canvas vs. SVG Canvas Pixel based (Dynamic .png) Single HTML element.(Inspect element in Developer tool. You can see only canvas tag) Modified through script only Event model/user interaction is granular (x,y) Performance is better with smaller surface, a larger number of objects (>10k), or both SVG Shape based […]

Read More →

Got a good code on web to dynamically load JS or CSS file function loadjscssfile(filename, filetype){ if (filetype==”js”){ //if filename is a external JavaScript file var fileref=document.createElement(‘script’) fileref.setAttribute(“type”,”text/javascript”) fileref.setAttribute(“src”, filename) } else if (filetype==”css”){ //if filename is an external CSS file var fileref=document.createElement(“link”) fileref.setAttribute(“rel”, “stylesheet”) fileref.setAttribute(“type”, “text/css”) fileref.setAttribute(“href”, filename) } if (typeof fileref!=”undefined”) document.getElementsByTagName(“head”)[0].appendChild(fileref) } […]

Read More →