Skip to content

Commit

Permalink
Quicklink section for home page.
Browse files Browse the repository at this point in the history
[docs] Over-prefetching section for home page (GoogleChromeLabs#148)

* Home section around over-prefetching.

* Over-prefetching partial.

* Changing carousel by content.

Quicklink Chrome extension section for home page.
  • Loading branch information
demianrenzulli committed Dec 10, 2019
1 parent c194be4 commit 4010510
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
13 changes: 13 additions & 0 deletions site/src/_includes/components/chrome-extension.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{% extends "layouts/normal-section-wrapper.njk" %}
{% block section %}
{% sectionTitle "Chrome Extension" %}
{{ "We've developed a [Chrome extension](https://chrome.google.com/webstore/detail/quicklink-chrome-extensio/epmplkdcjhgigmnjmjibilpmekhgkbeg) that injects and initializes `Quicklink` in every site you visit." | markdown | safe }}
{{ "The extension can be used with the following purposes:" | markdown | safe }}

{{ "* To navigate the web faster." | markdown | safe }}
{{ "* To estimate the potential impact of `Quicklink` on a site, before implementing it (see [impact measurement guide](/measure))." | markdown | safe }}

{{ "The extension comes with a default set of URL patterns [to ignore](https://github.com/GoogleChromeLabs/quicklink#optionsignores) (e.g. signin, logout, etc). You can add more patterns, by clicking on the extension icon, and picking 'Options' from the drop-down menu." | markdown | safe }}
{{ "The code of the extension can be found at [this repository](https://github.com/demianrenzulli/quicklink-chrome-extension). Contributions are welcomed!" | markdown | safe }}

{% endblock %}
2 changes: 1 addition & 1 deletion site/src/_includes/components/over-prefetching.njk
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{% markdownConvert %}
```js
quicklink.listen({
el: document.getElementById('carousel')
el: document.getElementById('content')
});
```
{% endmarkdownConvert %}
Expand Down
2 changes: 2 additions & 0 deletions site/src/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ description: Faster subsequent page-loads by prefetching in-viewport links durin

{% include "components/over-prefetching.njk" %}

{% include "components/chrome-extension.njk" %}

{% include "components/use-with.njk" %}

0 comments on commit 4010510

Please sign in to comment.