Hosting CSS or Javascript File in Google Drive

This is just quick note on how to use google drive to host our css/javascript file. After get the direct URL then we can used in our website.

1. Upload css/javascript file to google drive.
2. Click Share > Public on the web
3. Copy “link to share” and do some change to the URL.

i.e the link to share is

CHANGE above link to

Keep the key part  “0B4n9GL3eVuV-TkphMkc3SFR2ghj” and remove others. Add

before the key part. And now you have direct link to your CSS/Javascript on google drive.

UPDATE 19 Mei 2016
How to get direct download link from uploaded file on Google Drive?

  1. Right click uploaded file > Get shareable link
  2. Copy share link and change with below rule


Now you get direct download link for your file on google drive. This trick only works for uploaded file. Not, file created using Google tools.

Update 24 Oktober 2017

Berhubung direct link dari google drive tidak bisa lagi, maka alternatif free hosting untuk file js, bisa menggunakan layanan gratis dari


Tinggalkan Komentar

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.