Streaming live at 10am (PST)

Custom code workaround for a code with more than 10K characters?

Hi, i have a custom code which has more than 10000 characters. Is there a workaround to this limitation?

@Yannick_Duguay your best bet would be to host the file externally, and simply link to that file in your Webflow code.

Here is an example on how you can do this: How to host text files on Github

Yes i figured that i had to do that but i have some Javascript and it doesn’t work. it’s an HTML file that i host on Github but for some reason nothing seems to work for JS. I tried to place the script in the html file (in the head and in the body) and i tried to place in the general custom code on Webflow and also in the custom code area on the Webflow’s page where the embed code is located. I’m really not used to work with JS so i must do a noobie error without knowing it but i can’t figure out what i’m doing wrong.

So I had this issue also where I had over 10k of custom code. I came across this link, and it worked perfectly. I’m a programming noob so maybe there is a problem with doing this but it works so ¯_(ツ)_/¯

(In case the link ever gets moved…)

For reference https://smashballoon.com/instagram-feed/standalone/docs/host-on-google-drive/

1) Click on the  **New**  button in the top left corner and select  **File Upload - add your css or js file**

2) Once the file is done uploading, right click on the file and select the  **Share**  option.

3) Select  **Advanced**  in the bottom right corner

4) Under the  **Who has access**  options click on  **Change**

5) Select  **On – Public on the web**  and then Save in the bottom left corner

6) Copy the file ID you can find in the text field at the top of the window.

![screenshot|609x240](https://static.hwpi.harvard.edu/files/styles/os_files_xlarge/public/assetslibrary/files/gdrive-filename-highilight-1.png?m=1566398478&itok=dg5JJUPb)

7) Add the file ID to the URL below to create the path to the file:

**https://drive.google.com/uc?export=view&id=FILE-ID-GOES-HERE**