Tip of the day: Use Google to host your frameworks

Did you know that you can use Google's servers to host your code, or rather the frameworks that improves your code. For example, today I wanted to find out which the best way is to display many lines of code on a website. I believe the answer is Prettify.
Yes, your could download Prettify, and then link your code to that directory. But it's much more simple to use Google to host Prettify. Google's vision is to make the web more faster, so they are more than happy to use their fast servers to host your favorite frameworks. So if you want to display Prettify, you just have to add the following link to your website:

<script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js"></script>

The same is true if you are using frameworks like jQuery. Just add the following to your website:

 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>

So before you are downloading frameworks to your computer, check if Google is hosting it. It will almost always be faster for your users to download, and it will minimize your workspace.

Comments