Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation + guidance on using CDN assets #119

Closed
khawkins98 opened this issue Nov 1, 2017 · 3 comments
Closed

Add documentation + guidance on using CDN assets #119

khawkins98 opened this issue Nov 1, 2017 · 3 comments

Comments

@khawkins98
Copy link
Contributor

khawkins98 commented Nov 1, 2017

Efforts are under way to make the visual framework, fonts, and other assets available from a more performant CDN configuration.

What do I need to do?

There are two changes to note for end users:

  1. Assets will only be available with https.
  2. Change the domain from www.ebi.ac.uk to ebi.emblstatic.net
    • wwwdev.ebi.ac.uk is now dev.ebi.emblstatic.net

To illustrate

URLs to load will move from:

  • //www.ebi.ac.uk/web_guidelines/EBI-Framework/v1.2/js/script.js
  • //www.ebi.ac.uk/web_guidelines/EBI-Framework/v1.2/libraries/foundation-6/js/foundation.js
  • //www.ebi.ac.uk/web_guidelines/EBI-Framework/v1.2/js/foundationExtendEBI.js
  • //www.ebi.ac.uk/web_guidelines/EBI-Framework/v1.2/libraries/foundation-6/css/foundation.css
  • //www.ebi.ac.uk/web_guidelines/EBI-Framework/v1.2/css/ebi-global.css
  • //www.ebi.ac.uk/web_guidelines/EBI-Icon-fonts/v1.2/fonts.css
  • //www.ebi.ac.uk/web_guidelines/EBI-Framework/v1.2/css/theme-embl-petrol.css

to:

  • https://ebi.emblstatic.net/web_guidelines/EBI-Framework/v1.2/js/script.js
  • https://ebi.emblstatic.net/web_guidelines/EBI-Framework/v1.2/libraries/foundation-6/js/foundation.js
  • https://ebi.emblstatic.net/web_guidelines/EBI-Framework/v1.2/js/foundationExtendEBI.js
  • https://ebi.emblstatic.net/web_guidelines/EBI-Framework/v1.2/libraries/foundation-6/css/foundation.css
  • https://ebi.emblstatic.net/web_guidelines/EBI-Framework/v1.2/css/ebi-global.css
  • https://ebi.emblstatic.net/web_guidelines/EBI-Icon-fonts/v1.2/fonts.css
  • https://ebi.emblstatic.net/web_guidelines/EBI-Framework/v1.2/css/theme-embl-petrol.css
@peter-walter
Copy link
Contributor

Just to note, only /web_guidelines/EBI-Framework and /web_guidelines/EBI-Icon-fonts are available on the CDN, other assets from the old 'compliance' and 'mitigation' assets (eg /web_guidelines/images and /web_guidelines/css /web_guidelines/js, etc) need to be referenced from the ebi.ac.uk domain.

@khawkins98
Copy link
Contributor Author

khawkins98 commented Nov 1, 2017

Here's a glimpse at performance differences, because I know this question will be asked (with caching off):

Note: this is from within the EBI network. We can expect greater improvements the further you get from London.

Before

image

After

image

@mandarsd
Copy link

Getting CORS error for EBI-Generic.woff2 font file -
font-error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants