ebiwd / EBI-Framework

The EMBL-EBI Visual Framework for websites and services.
https://www.ebi.ac.uk/style-lab/websites/
19 stars 16 forks source link

Add documentation + guidance on using CDN assets #119

Closed khawkins98 closed 6 years ago

khawkins98 commented 7 years ago

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:

to:

peter-walter commented 7 years ago

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 commented 7 years ago

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 commented 6 years ago

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