diff options
| author | 2013-12-14 13:57:25 +0100 | |
|---|---|---|
| committer | 2013-12-14 13:57:25 +0100 | |
| commit | 4f0b1efc2b6334a5be1e5f2b6a7b64b925c841b4 (patch) | |
| tree | 589fbcf78367e8f74458ef4d12a922fe2353db72 /app/layout/layout.phtml | |
| parent | 97a7d7b0b2c25d573a8dac72e6183abf640c8fe4 (diff) | |
Prefectch : précharge les icônes
Précharge les icônes qui ne sont pas forcément affichées sur la page en
cours (par exemple l'icône favoris) pour éviter d'avoir un bref instant
sans icône lors du changement d'état (par exemple lorsqu'on marque un
article comme favoris)
Diffstat (limited to 'app/layout/layout.phtml')
| -rw-r--r-- | app/layout/layout.phtml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/layout/layout.phtml b/app/layout/layout.phtml index 6fc5c1cf0..ac00e8fd0 100644 --- a/app/layout/layout.phtml +++ b/app/layout/layout.phtml @@ -20,6 +20,10 @@ <?php if (isset ($this->rss_url)) { ?> <link rel="alternate" type="application/rss+xml" title="<?php echo $this->rss_title; ?>" href="<?php echo Url::display ($this->rss_url); ?>" /> <?php } ?> + <link rel="prefetch" href="<?php echo RSSThemes::icon('starred', true); ?>"> + <link rel="prefetch" href="<?php echo RSSThemes::icon('non-starred', true); ?>"> + <link rel="prefetch" href="<?php echo RSSThemes::icon('read', true); ?>"> + <link rel="prefetch" href="<?php echo RSSThemes::icon('unread', true); ?>"> <meta name="robots" content="noindex,nofollow" /> </head> <body> |
