1
11 Comments

The best way to distribute JS files over CDN?

Hi all,

I am about to start building a small saas that will have an embeddable widget clients will be able to place on their website.

But I am not 100% clear on the solutions and tools available to distribute JS files over a CDN?

Can anyone recommend a few? And the best way it is done for hosting JS files for a Saas? Thank you

on May 4, 2020
  1. 3

    why can't you just host it on aws? here are some other tools I found:

    1. 2

      Thank you. I think one of the other tools you mentioned is for NPM packages. The AWS option works, it completely escaped my mind.

      I guess I want to get a few other options and then evaluate them. cheers

      1. 1

        aws can be expensive. If you are looking for low price options then go for https://www.digitalocean.com/ awesome UI and it's cheap as compared to aws and azure

        1. 1

          thank you. I did not know they had a separate CDN solution. Offline I got a few other recommendations. One of them is Netlify

          1. 2

            netlify is great I mostly use it for static site hosting. there's also http://vercel.com/ which is similar. both offers a free tier with certain limitations

            1. 1

              ooo...looks promising, thank you

  2. 2

    I had a similar issue once.
    I ended up just putting it on github and using www.jsdelivr.com.
    Hope that helps

    1. 1

      can github integrate with jsdelivr? also I use bitbucket does git credtials support multiple providers?

      1. 1

        Jsdelivr works with Github yes. And I think you have to create a new account for github.

    2. 1

      Thank you, I am going to check jsdelivr.

  3. 1

    gitlab pages or oh well github pages