Streaming live at 10am (PST)

How to embed files hosted on Github

Anyone find out how to host JS files on other CDNs like amazon for example?
What are the list of allowed origin domains that webflow can link to?

I really with webflow had CORS support!!

Many thanks :slight_smile:

Hi, now this solution is not working?

Hi :slight_smile:
Im sorry to bother you, but i tried to follow your tutorial but it seems RawGit isnt accepting new repos. Is there another way to do this? i know little to nothing about java and have no clue on how to use jsDelivr and simmilar CDNs.

Can you please help. :slight_smile:
thanks

See Public Service Announcement: Rawgit Shutting Down

Hello! I am tryindo to do that, but I have this issue:
" 403 Forbidden

RawGit will soon shut down and is no longer serving new repos. Please visit https://rawgit.com for more details."
What I have to do? Thank you!

How are we going to do now that rawgit is not working any longer?

https://rawgit.com/

Please see the link I posted above.

Rawgit.com is end of life, Combinatronics.com is a drop in replacement.

Change URL from raw.github.com or raw.githubusercontent.com to combinatronics.com

2 Likes

can you update guide to include github Pages instead of rawgit? github pages is most likely to stay up

Guys, I am just curious, are there any gitlab users here? After I read this, it seems to me that it also is a nice option for some projects. Do you have any experience with it?

I have large svg file that now is hosted on gist as per your instructions. What code do i need to wrap on webflow page. PS I already have style and script loaded in another embed block on page

https://cdn.rawgit.com/eschwantler/71a67a5b921cd093bb5454dc52618b7d/raw/0f06e2ccae81ca9dbf16fe2a54c242923dc3a202/illustration-optimized.svg

@erics Put it in an image tag, in an embed code component:

<img src="https://cdn.rawgit.com/eschwantler/71a67a5b921cd093bb5454dc52618b7d/raw/0f06e2ccae81ca9dbf16fe2a54c242923dc3a202/illustration-optimized.svg">

This no longer works as rawgit.com has shut down. Any alternatives?

:+1:

2 Likes

Is there no solution, where i can add my custom scripts to the CDN of Webflow? Just to avoid some more HTTP requests? Or is Webflow already using HTTP 2?

You can’t host your own JavaScript files on the Webflow CDN. But you can use the page custom code, or custom code elements to add your JavaScript straight into your project.

Yeah, i know. But i’m not a fan of a lots of inline javascript and multiple resources loaded. Thats why i asked if there is maybe a Webflow Javascript Function to push certain resources to their CDN. Would be a useful feature. But i think its the performance matters are too small to have such a feature.
I mean 2 CDN instead of one is still not the best solution :slight_smile:

Not sure if it still works, but I’ve done it before. You can upload a text file to your assets, then load that file.

1 Like

how do you do that ? i tried getting the url of my text assets but it doesn’t work.

my text url is something like this

https://uploads-ssl.webflow.com/5fbbd8b04100e910e2dbf903/5fc3b27ee4b22271e37ae5cd_webflow%20text.txt