Êtes-vous un concepteur Web et concevez des sites Web ou des widgets, vous devez héberger vos fichiers sur des serveurs CDN rapides afin que votre utilisateur de code ou de modèle puisse utiliser vos codes sur ces sites Web ou blogs en douceur, donc pour cela, vous avez besoin d'un serveur ultra rapide mais cela va être cher. Alors pourquoi ne pas essayer des services gratuits après quelques ajustements
Google est rapide comme personne n'est autre, c'est que vous savez mieux pourquoi ne pas utiliser le serveur Google comme vos propres serveurs d'hébergement. Donc, oui, vous pouvez l'utiliser et c'est 100% gratuit. Après avoir hébergé vos fichiers ici, vous pouvez obtenir plus de fonctionnalités telles qu'un chargement ultra rapide, le meilleur référencement et un bon temps de chargement. Vous pouvez facilement héberger vos fichiers JavaScript, CSS et HTML ici. Vous pouvez également le partager afin que d'autres puissent l'utiliser ou l'intégrer également
## Comment héberger un fichier HTML, CSS, JavaScript ?
1.) Générez vos fichiers :
**Fichier CSS Ouvrez le Bloc-notes et collez le code CSS (s'il est inclus dans le
tags, remove them). In the Notepad menu, select âÃÂÃÂFileâÃÂà> âÃÂÃÂSave asâÃÂàand type the file name with the
.css extension just like I did with mycssfile.css âÃÂàsee the screenshot below
In the same window, choose âÃÂÃÂAll filesâÃÂàin the âÃÂÃÂSave as typeâÃÂàoption and set the Character Encoding to UTF-8. If you want to host a JavaScript file, add the
.js extension (instead of .css) at the end of your file name (remove the
tags if you see them). Click âÃÂÃÂSaveâÃÂàand navigate to the location where you want to save the file
2.) Upload Your File On Google Drive:
Open httpsdrive.google.com and log in with your Gmail account. After you logged in, click on the âÃÂÃÂCreateâÃÂàbutton and add a new separate folder to upload your JavaScript and CSS files
Just after creating the folder, make it public so that whatever you will share in this folder will be accessible to the public. So âÃÂÃÂRight ClickâÃÂàon the folder and select âÃÂÃÂShareâÃÂÃÂ
Then click on âÃÂÃÂAdvance SharingâÃÂàto open more setting and make it like below
Open the newly created folder and âÃÂÃÂUploadâÃÂàyour HTML,CSS,JS files. After the files have been successfully uploaded, right click on the file names and select âÃÂÃÂGet LinkâÃÂÃÂ
3.) Get The Shareable Link:
When you will get the link that the link will be something like
httpsdrive.google.com/open?id=0B8dPWvOrtDiAS01WenpMSHcxMkk
Before you can use the links, you must replace
httpsdrive.google.com/open?id= to
httpsgoogledrive.com/host/ so it will become
httpsgoogledrive.com/host/0B8dPWvOrtDiAS01WenpMSHcxMkk
## Last Words:
As you can see, changing your file storage out so that is CSS and JavaScript is stored on your Google Drive account is easy to do and only takes a few minutes. After you make the change, you can begin benefiting from faster loading speeds, higher SEO rankings, and overall a more convenient platform to work from to increase the efficiency of your work.