gatsby-plugin-load-script icon indicating copy to clipboard operation
gatsby-plugin-load-script copied to clipboard

What is the option for script with defer?

Open jbalatero opened this issue 4 years ago • 1 comments

jbalatero avatar Apr 25 '20 05:04 jbalatero

Hi @eudora-fabia

You can do it this way

  {
      resolve: "gatsby-plugin-load-script",
      options: {
        src: "/js/splitting.min.js",
        defer: true,
      },
    },

garmjs avatar Jun 11 '20 23:06 garmjs