How to host your JS files on gDrive.
Rename your local .js files to .txt
This is to ensure that the MIME type of the uploaded javascript files on Google Drive is “text/plain”, otherwise your browser may refuse to execute the script because its MIME type is “text/html”.
Upload your files to Google Drive and rename the .txt files back to .js
When you rename the files to .js on gDrive, the MIME type is preserved.
Right-click on the file and select the Share option
Change file permission from “Restricted” to “Anyone with the link”. Next, copy the file ID as highlighted below.

how to use google drive as CDN for javascript
Add the file ID to the URL below to create the path to the file