kadirahq / meteor-dochead

Isomorphic way to manipulate document.head for Meteor apps
MIT License
132 stars 17 forks source link

Can I add stylesheets which point to cdn #22

Open almeynman opened 8 years ago

almeynman commented 8 years ago

I could not make it work. For instance how to add:

<link href="https://fonts.googleapis.com/css?family=Roboto:400,400italic,500,500italic,700,700italic,300,300italic&subset=latin,cyrillic-ext" rel='stylesheet' type='text/css'>
    <script src="https://storage.googleapis.com/code.getmdl.io/1.0.5/material.min.js"></script>
    <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
sahanDissanayake commented 8 years ago

@arunoda this would be an awesome add if you could explain if possible.

I'm struggling with the same thing at the moment

payner35 commented 8 years ago

+1

payner35 commented 8 years ago
var linkInfo = {rel: "stylesheet", href: "https://fonts.googleapis.com/icon?family=Material+Icons"};

DocHead.addLink(linkInfo);