Coder Social home page Coder Social logo

Add to CDN about inter HOT 7 CLOSED

rsms avatar rsms commented on September 28, 2024
Add to CDN

from inter.

Comments (7)

MartinKolarik avatar MartinKolarik commented on September 28, 2024 3

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.

from inter.

MartinKolarik avatar MartinKolarik commented on September 28, 2024 2

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

from inter.

rsms avatar rsms commented on September 28, 2024

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!

from inter.

jenil avatar jenil commented on September 28, 2024

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!

from inter.

rsms avatar rsms commented on September 28, 2024

screenshot 2017-08-23 08 36 04

from inter.

rsms avatar rsms commented on September 28, 2024

@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.

from inter.

terinjokes avatar terinjokes commented on September 28, 2024

@rsms 😬 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.

from inter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.