If you’re ever worked as a web designer and web developer, then you must know about the importance of store your files and folders.
Every time when any one visit your site, the server or the host will access that location where your files and folders exists and display the results on the screen.
How to Host Blogger CSS & JavaScript Files in Google Drive Hosting |
This is very important things because you upload your all files to that particular locations where server reaches easily and use at the time of need.
Whenever you uploading your files and folders to any web host or any other third party sites, this will have an impact on some important things like your website loading speed, your SEO ranking in search engine, your all other abilities to make all the important adjustments to your site.
Here in this article, I’ll show you how to host your CSS and JavaScript files on Google Drive to blogger or any other CMS system. Not only host files but also you host your website on Google web hosting services.
- 16 Best Web Hosting Services to Start a Website
- 16 Helpful Tips You Must Know Before Choosing a Web Hosts
Many bloggers use a custom template to their blogger blogs. They always use some external blogging widgets that needs some external CSS files and JavaScript files for their working.
But unfortunately, blogger doesn’t provide the option to upload your separate CSS or JavaScript files to their server, they only provide to upload images and videos and texts.
Previously, almost every developers and bloggers would use the Google code which is look like their URL (http://code.google.com/host/files) etc to host their files because it’s look like so simple and easy to use.
But Google announced many other features and deprecating all the other options like download for hosted projects, so I’ll recommended you to use Google Drive is the best.
We have many other options to host our CSS and JavaScript related files like Dropbox, Google Apps, Google Codes, but Google Drive is the best options from them and I personally recommended you to use it.
Google Drive gives you free account which is used everyone with their Gmail ID, and Sign in to their account, they provide 15 GB free space for every users to use.
Contents
Why Should We Use Google Drive For Host Files?
Before going further more, the first question arise in your mind, of why should we host files and folders on Google Drive? and what are their benefits. So below I’ll mention some important and useful benefits of Google Drive.
#1 – Freedom
Google Drive provide you the free space and freedom to use according to your taste and interest. You’ve a full freedom here to upload your files which you want and download them anytime.
#2 – Free Space
When Google launched this service with the name of “Google Drive“ they only provide 5 GB free space to their users. But after that they allow 15 GB free space that helps us more to use them for our development projects and hosts our files on here.
#3 – Versatility
Google Drive provides you the free space not only to upload some specific kind of files, but also gives you the opportunity to upload any files which you want, whether it is text files, video files, audio files, CSS files, JavaScript files, software’s, games etc.
#4 – Security
Security is the main and one of the important options for any kind of businesses. If you’ve a tightened security then there is no fear. So Google also provides you the full security to your files, they also use protocols and HTTPs connections that make it more secure.So without any hesitation you can use this service.
#5 – Reliability
As everyone know about the Google, and it’s all services own by Google itself. So it is the most reliable and protective service which you use without any fear. It provides 100% up-time supports and access to your hosted files from anywhere in the world.
#6 – Public and Private Options
AS Google web hosting service provide us the options to whether we links our files publicly or privately. You are able to share your files and folders with anyone from all around the world through some unique links. Anyone can comments, share and view your all documents, files, folders if you make them public. But if you want, no one can see out your files then always make it private.
#7 – Free Service
This is the best option ever in time, because everyone wants to get something best but totally free. So Google Drive is totally free and gives you 15 GB free space to hosts your files and folders, and this is the service of Google, so it is fully trustworthy service.
Advantages of Google Drive Web Hosting to Hosts CSS & JavaScript Files
Because Blogger itself doesn’t provide this facility to hosting your external CSS, HTML or JavaScript related files. They only provide to hosts within the blogger template HTML coding, where you can add, remove or change your code of files.
Storing blogger CSS , HTML or JavaScript files with Google web hosting will helps us a lot to eliminate the problems if any one exists and reduce out the clutter among your services.
If you hosts your CSS , JavaScript files on other external web hosting service like Google Drive, then it helpful to you. It can increase your site speed, increasing your page loading time, getting different SEO benefits and campaigns and much more.
If you use Blogger as a blogging platforms and your blog hosted on blogger, then you’ll know that for CSS style sheet, the <style> tag will be used as a start and end with </style> tags. All the CSS coding placed between these two tags in blogger templates.
For HTML files, we use <html> tag at the start and </html> at the end tags. All he coding of HTML will be placed in between these two tags.
Similarly, for JavaScript coding, we use <script> tag to define the script that we use. This script tag either contains some scripting codes or it points to an external files through the src attribute.
So if you combines all these separated files in a single 1 file then it helps you a lot. It increase your website speed and improve your page loading time. It also helps search engines robots to crawling and indexing your site easily and smoothly.
Host CSS, JavaScript, HTML Files in Google Drive Hosting
Blogger Work
Step 1 – First of all go to “www.blogger.com” official website.
<b:skin>
Log In to Your Google Drive Account
Step 6 – Now go to “Google Drive” site and log in to your account using your Gmail ID.
Step 8 – After clicking on “Folder” option, a pop up box appear, here enter your folder name and click on save button.
Step 11 – Now select your file and right click on it and select “Share” option or you can also go to your upper options bar and click on “Share” link as show below.
Step 12 – After clicking on share option, click on “Advanced” link and below type of pop up box appear. Here click on “Change” option to change it’s setting.
Step 13 – Simply select the “On – Public on the web” option and hit on “Save” button.
Get the Link Address to Copy it
Step 14 – So after making it public, now simply copy the link address and change it with given below example.
Original Link :
https://drive.google.com/file/d/0Byhbsy7JPmcPUURVN19fYUprYUk/view?usp=sharing
Change With :
https://drive.google.com/host/0Byhbsy7JPmcPUURVN19fYUprYUk
As you copy the original link from your account. Simply change your link with this style that we use later. The blue color ID is the unique address for your file share link.Simply make your original link with this type and you’re done your work.
Use External Links to Blogger Blogs
Now here we use these external file links to our blogger blogs. For this purpose, follow below complete guide.
Step 1 – Go to your blogger blog and click on “Template” link and click on “Edit HTML” button.
Step 2 – Now copy the whole CSS code and delete it and simply replace with the below tags. In between this tag we use our external file which we uploaded on Google Drive hosting.
For using the above link to your blogger template, follow the below syntax.
<link href=’Your-CSS-File-Link-Here’ rel=’stylesheet’/>
For Example :
<link href=’https://googledrive.com/host/0Byhbsy7JPmcPUURVN19fYUprYUk‘ rel=’stylesheet’/>
How to Host JavaScript Files in Google Drive
<script src=’Your-JS-File-Link’ type=’text/javascript’></script>
For Example :
<script src=’https://googledrive.com/host/0Byhbsy7JPmcPUURVN19fYUprYUk‘ type=’text/javascript’></script>