smas1 / geoext-viewer

Automatically exported from code.google.com/p/geoext-viewer
GNU General Public License v3.0
0 stars 0 forks source link

Move hosted JS libs to CDN #250

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The current hosting, i.e. providing public URLs to Heron and its supporting 
libs is a bit messy:

- Ext from cachefly CDN (Content Delivery Network)
- partly users need to host themselves
- partly on http://lib.heron-mc.org/openlayers/ etc  which is not production 
quality
- need to provide bundling e.e. Heron+externals in single JS for production uses

The solution is to use a CDN (Content Delivery Network) to host Heron and 
external JS lib. http://cdnjs.com seems an excellent choice:

- user-driven
- low entry barrier via GitHub Pull. 

At least we will start with some of the external libs. Ext JS 3.4.1.1. 

Original issue reported on code.google.com by jus...@gmail.com on 4 Jul 2013 at 10:32

GoogleCodeExporter commented 9 years ago
Already on CDNJS is:

OpenLayers: http://cdnjs.cloudflare.com/ajax/libs/openlayers/2.12/OpenLayers.js

Original comment by jus...@gmail.com on 4 Jul 2013 at 1:20

GoogleCodeExporter commented 9 years ago
Yes! Ext JS 3.4.1.1 is now hosted via CDNJS. I have updated all examples and 
documentation.
I have also issued a pull for Hosting GeoExt 1.1:
https://github.com/cdnjs/cdnjs/pull/1565 - hope this gets pulled in also coming 
day(s).

So the following support libs are on CDNS:

OpenLayers 2.12
Ext JS 3.4.1.1
Proj4JS 1.1
GeoExt 1.1 (upcoming)

The core path is 
http://cdnjs.cloudflare.com/ajax/libs/<libname>/<version>/<files as 
distribution>
For example:

http://cdnjs.cloudflare.com/ajax/libs/openlayers/2.12/OpenLayers.js and

http://cdnjs.cloudflare.com/ajax/libs/extjs/3.4.1-1/ext-all.js

Original comment by jus...@gmail.com on 16 Jul 2013 at 9:24

GoogleCodeExporter commented 9 years ago
YES! Also GeoExt is now hosted on CDNJS via this Pull 
https://github.com/cdnjs/cdnjs/pull/1565

You may import GeoExt as follows
http://cdnjs.cloudflare.com/ajax/libs/geoext/1.1/script/GeoExt.js

Note that the entire distro's are hosted on CDNJS, so also debug versions are 
available.

Original comment by jus...@gmail.com on 24 Jul 2013 at 10:35