Automattic / juice

Juice inlines CSS stylesheets into your HTML source.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

juice.juiceResources is not a function

antoniogarcez opened this issue · comments

Hi,

I'm trying to use method juiceResources because, in my HTML, I have a lot of CSS files referenced by link tags. This is my code:

juice.juiceResources($('html')[0].outerHTML, { webResources: { images: false, svgs: false, scripts: false } }, function (err, html) {
    console.log(err);
});

But, unfortunately does not work and shows this error:

Uncaught TypeError: juice.juiceResources is not a function

What is happen?

This type of question might be more suited to stackoverflow as you don't seem to be reporting an issue per se.