rSimulate / Cosmosium

:earth_americas: js game engine for space-based games
Other
23 stars 7 forks source link

cdn-ify more of the js libs. #62

Closed 7yl4r closed 9 years ago

7yl4r commented 10 years ago

Basically, replace everywhere that says /js/plugins/whatever.js with a cdn hosting of the file, delete the file from our repo, then check the website to make sure it works.

I did this with the largest of the js libs, but there are a few more like jquery.dataTables.js, full-calendar.js, and three.js. It helps a lot to use a tool like windirstat to find them, and to use an automated search to find usages in the project. Pretty simple task, but watch out for unexpected permutations like ../../js/plugins/whatever.js.

BrianErikson commented 9 years ago

Could you explain the cdn hosting process a little bit more? I would presume we would need the plugins in the repo to run the server locally, but I'm probably wrong.

7yl4r commented 9 years ago

I don't know how the hosting process works, this applies only to libraries already hosted on something like http://cdnjs.com/.

BrianErikson commented 9 years ago

95% of libs are now CDNified. It's safe to say that this is as close as we'll get unless someone has some awesome google-foo. Closing for now.