How to "host CSS and javascript files in Google Drive instead on server"
- Help to eliminate any of the problems mentioned above and reduce the clutter among your services.
- Taking this method can increase your site speed,
- Increase the opportunities for a successful SEO campaign
- Google Drive provides ample amount of space to store large files.
- Highly secure
- Fast loading page speeds
- Higher SEP rankings
Explore My Other Channel for More Cool and Valuable Insights
👉 Youtube Learn Tech Tips👉 Tiktok
👉 Facebook:How to do it?
Step 1: Go to Google Drive by searching Google drive and login it with gmail accountStep 2: Choose My Drive and choose New folder (setup name with js folder)
Step 3: Upload css, javascript files to this folder
Choose Get link status and choose Sharing settings
Choose Advanced
Step 4: Add an External CSS / javascript file to Blogger
Note:
You must replace "https://drive.google.com/file/d" to "https://googledrive.com/host" and
remove "/edit?usp=sharing" or "/view?usp=sharing" in the link
For example, the link to javascript.js that I copied looks like this:
https://drive.google.com/file/d/0Bw0wdOxjVlxfYTZ3VnhRWWNzbm8/view?usp=sharing
=> After replace:
https://googledrive.com/host/0Bw0wdOxjVlxfYTZ3VnhRWWNzbm8
Now log into your blogger account, select your blog and go to Template -> Edit HTML.
If you want to add CSS file, Search <head> tag, Just below the <head> tag, add this link
<link href="https://googledrive.com/host/0Bw0wdOxjVlxfYTZ3VnhRWWNzbm8"
rel="stylesheet" type="text/css"></link>
If you want to add javascript file, Search </body> tag, just Above it, Add this link
<script src="https://googledrive.com/host/0Bw0wdOxjVlxfYTZ3VnhRWWNzbm8"
type="text/javascript"></script>
Thank you for reading this post. I hope you found it helpful and easy to follow. If you have any feedback or questions about
How to "host CSS and javascript files in Google Drive instead on server" ,
please share them in the comments below. I would love to hear from you and discuss this topic further
✋✋✋✋
Webzone Tech Tips
- I am Zidane, See you next time soon ✋✋✋✋