Forums

Load Font-Awesome from a CDN network

01 05 Jan, 2016
Hi!
It's more a wish for a future release to be able to load the font-awesome from a CDN network.
The online test such as Pingdom requires to optimize a website with this feature "Parallelize downloads across hostnames"πŸ™‚
To accomplish this task I've created a sub domain and have moved files from libraries/cegcore/assets to it.
It solves this problem mostly but the font-awesome's path must be changed to a CDN network in order to work.

So my proposition would be to make an option in Chronoforms where user could point a sub-domain and all assets would be moved there with appropriate CDN calls. This will be great optimization for a load time!
GreyHead 05 Jan, 2016
Hi 01,

You can try editing the first few lines of the /libraries/cegcore/assets/font_awesome/css/font-awesome.css file. Prettified they look like this
@font-face {
  font-family: 'FontAwesome';
  src: url('../fonts/fontawesome-webfont.eot?v=4.2.0');
  src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.2.0') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff?v=4.2.0') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.2.0') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.2.0#fontawesomeregular') format('svg');
  font-weight: normal;
  font-style: normal
}

Bob
01 05 Jan, 2016
Hi Bob!
Yes, I've made it already.
But I'd prefer if it would be a option with a possibility automatically copy all required static files to a subdomain
This topic is locked and no more replies can be posted.