Is it possible to use local files for that Javascript library?

Asked

Viewed 61 times

1

I am using 3 scripts to create a Chart line graph using graphael. I used the online script. The problem is that I want to use without access to external files.

<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/raphael/2.0.0/raphael-min.js"></script> 
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/graphael/0.5.0/g.raphael-min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/graphael/0.5.0/g.line-min.js"></script> 

I copied the code to three different local files. But I had another problem, because they are very big files and I don’t even use half the code in my example, and I’m afraid this makes loading my page more time consuming. Are there such shorter files with less code? You really need to use these 3 libraries?

Example of my chart: http://jsfiddle.net/aNJxf/23/

  • I believe that the version you are using is already the smallest because it is . min

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.