Skip to content

Commit

Permalink
Update Docs “google-hosted-libraries/index”
Browse files Browse the repository at this point in the history
  • Loading branch information
bgoonz committed Apr 17, 2022
1 parent ab58b6c commit 9dcb5c0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 28 deletions.
45 changes: 17 additions & 28 deletions src/pages/docs/google-hosted-libraries/index.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
---
title: Google Hosted Libraries
template: docs
excerpt: The Google Hosted Libraries is a stable, reliable, high-speed, globally
available content distribution network for the most popular, open-source
JavaScript libraries
---
## The Google Hosted Libraries is a stable, reliable, high-speed, globally available content distribution network for the most popular, open-source JavaScript libraries.

> Google works directly with the key stakeholders for each library effort and accepts the latest versions as they are released.
> #### ***The Google Hosted Libraries is a stable, reliable, high-speed, globally available content distribution network for the most popular, open-source JavaScript libraries***
>
> > Google works directly with the key stakeholders for each library effort and accepts the latest versions as they are released.
## Libraries

**To load a hosted library, copy and paste the HTML snippet for that library (shown below) in your web page. For instance, to load jQuery, embed the `<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>` snippet in your web page.**
**To load a hosted library, copy and paste the HTML snippet for that library (shown below) in your web page. For instance, to load jQuery, embed the** 

![jquery](/docs/jquery.jpg "Jquery Logo")

snippet in your web page.

**We recommend that you load libraries from the CDN via HTTPS, even if your own website only uses HTTP. Nowadays, performance is fast, and caching works just the same. The CDN's files are served with [CORS](http://www.w3.org/TR/cors/#access-control-allow-origin-response-header) and [Timing-Allow](http://www.w3.org/TR/resource-timing/#cross-origin-resources) headers and allowed to be cached for 1 year.**

Expand Down Expand Up @@ -68,7 +75,11 @@ versions:

snippet:

`<script src="https://ajax.googleapis.com/ajax/libs/hammerjs/2.0.8/hammer.min.js"></script>`


```html
<script src="https://ajax.googleapis.com/ajax/libs/hammerjs/2.0.8/hammer.min.js"></script>
```

site:

Expand All @@ -85,7 +96,7 @@ snippet:
```html
<script type="module">\
  import { IndefiniteObservable } from "https://ajax.googleapis.com/ajax/libs/indefinite-observable/2.0.1/indefinite-observable.bundle.js";\
</script>`
</script>
```

site:
Expand Down Expand Up @@ -114,8 +125,6 @@ site:

[jquery.com](http://jquery.com/)



note:

3.3.0, 2.1.2, 1.2.5 and 1.2.4 are not hosted due to their short and unstable lives in the wild.
Expand All @@ -132,8 +141,6 @@ site:

[jquerymobile.com](http://jquerymobile.com/)



note:

This library depends on jQuery. You must also load jQuery before loading this module.
Expand All @@ -150,8 +157,6 @@ site:

[jqueryui.com](http://jqueryui.com/)



note:

This library depends on jQuery. You must also load jQuery before loading this module. Version 1.8.3 is not hosted due to its short life, and the alias `1.8.3` actually loads 1.8.4.
Expand Down Expand Up @@ -188,8 +193,6 @@ site:

[modelviewer.dev](https://modelviewer.dev/)



### MooTools

snippet:
Expand All @@ -200,8 +203,6 @@ site:

[mootools.net](http://mootools.net/)



note:

For versions 1.5.1 and earlier, the filename of the minified version is called mootools-yui-compressed.js instead of mintools.min.js.
Expand All @@ -216,8 +217,6 @@ site:

<https://github.com/google/myanmar-tools/>



### Prototype

snippet:
Expand All @@ -228,8 +227,6 @@ site:

[prototypejs.org](http://prototypejs.org/)



### script.aculo.us

snippet:
Expand Down Expand Up @@ -267,8 +264,6 @@ site:

<https://github.com/google/shaka-player/>



### SPF

snippet:
Expand All @@ -279,8 +274,6 @@ site:

[youtube.github.io/spfjs](http://youtube.github.io/spfjs/)



### SWFObject

snippet:
Expand All @@ -291,8 +284,6 @@ site:

[github.com/swfobject/swfobject](https://github.com/swfobject/swfobject)



### three.js

snippet:
Expand All @@ -303,8 +294,6 @@ site:

[threejs.org](http://threejs.org/)



### Web Font Loader

snippet>
Expand Down
Binary file added static/images/uploads/docs/jquery.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9dcb5c0

Please sign in to comment.