Permalink
Browse files

moved roboto link tag from CSS import to prefetched link tag, re: Nod…

  • Loading branch information...
julianlam committed Sep 8, 2017
1 parent 788399c commit 98aa41222e74342a2f3294a8963462e5dfd1844b
Showing with 12 additions and 3 deletions.
  1. +0 −2 less/style.less
  2. +10 −0 library.js
  3. +2 −1 plugin.json
@@ -1,5 +1,3 @@
@import url(https://fonts.googleapis.com/css?family=Roboto:300,400,500,700);

html {
overflow-y: scroll;
min-height: 100%;
@@ -117,4 +117,14 @@ library.addUserToTopic = function(data, callback) {
}
};

library.getLinkTags = function (data, callback) {
data.links.push({
rel: 'prefetch stylesheet',
type: '',
href: 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700',
});

callback(null, data);
};

module.exports = library;
@@ -7,7 +7,8 @@
{ "hook": "filter:config.get", "method": "getThemeConfig" },
{ "hook": "static:app.load", "method": "init" },
{ "hook": "filter:admin.header.build", "method": "addAdminNavigation" },
{ "hook": "filter:topic.build", "method": "addUserToTopic" }
{ "hook": "filter:topic.build", "method": "addUserToTopic" },
{ "hook": "filter:meta.getLinkTags", "method": "getLinkTags"}
],
"scripts": [
"lib/persona.js",

0 comments on commit 98aa412

Please sign in to comment.