Case Studies‎ > ‎

August 31 and the JavaScript disappearance

posted Aug 30, 2016, 4:07 PM by Andrei Zo
Until August 31, 2016, it was possible to host a website on Google Drive, but now complex sites need to either use the Google Drive APIFirebase or Google Cloud Platform.

This is bad, as many JavaScript and CSS code snippets have been hosted on Drive. It is perhaps best to include such snippets right into your template, decreasing loading time at the expense of code readability and easier updating.

The HTML of a webpage may be augmented with styles (CSS) and scripts (JavaScript). These are advanced topics and we recommend you get acquainted with it only in due course. However, you can and should move external scripts into the main Blogger page to decrease loading time and reliance on services that might disappear. This should all happen right above /head and be careful with relative paths in the remote-hosted code.
    • To include a JavaScript (*.js) file, replace its call with
      <script type='text/javascript'>
      ..all the code..
    • To include a CSS,
      <style type="text/css">
      /* This is a comment followed by a CSS rule */
      font-family:"Georgia", Helvetica, sans-serif;

Good luck!