Inter: Add to CDN

Created on 23 Aug 2017  ·  7Comments  ·  Source: rsms/inter

hey!

First, great work here! 👏🏻

I was referencing https://rsms.me/interface/interface.css but the server seems to be slow and wasn't even resolving today morning. Do you mind adding it to a CDN provider like cdnjs.com or even a npm package that can be loaded over unpkg.com?

Most helpful comment

Ah, I wanted to say the CSS file is also available here but then I realized it uses absolute URLs. I'd recommend changing that to relative ones in the future, to make it easier to use.

All 7 comments

The site rsms.me is actually already served by no less than two CDNs — Cloudflare CND (for the TSL/security) and GitHub pages behind that. I think either GitHub or Cloudflare had some issues earlier today. If there continue to be issues with Cloudlfare I'll put the font files up someplace else.

However, for more critical applications, I would always recommend hosting the font files yourself so that you can control the quality of service.

Hope that helps!

@jenil You can also use jsDelivr CDN for production, which can serve all files from GitHub: https://cdn.jsdelivr.net/gh/rsms/[email protected]/

I see, yeah I saw it was behind a Cloudflare CDN and that totally makes sense.

I'd still want you to consider publishing it on npm for an easier availability for a lot of other projects.

Thanks!

screenshot 2017-08-23 08 36 04

@MartinKolarik Yeah, you could do that — put a copy of interface.css into your web thing and point to font files at https://cdn.jsdelivr.net/gh/rsms/[email protected]/docs/font-files/

However, note that rsms.me is itself served from Github pages.

Ah, I wanted to say the CSS file is also available here but then I realized it uses absolute URLs. I'd recommend changing that to relative ones in the future, to make it easier to use.

@rsms :grimacing: You probably want to configure a Page Rule to cache the CSS file and font-face so they remain in Cloudflare's cache for longer.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

csampersand picture csampersand  ·  3Comments

cssobral2013 picture cssobral2013  ·  3Comments

ivan-kleshnin picture ivan-kleshnin  ·  6Comments

bhellman1 picture bhellman1  ·  3Comments

vilav picture vilav  ·  5Comments