From 872c929a0e2652224ea516367b1dad7624c99d6b Mon Sep 17 00:00:00 2001 From: Romaric Pascal Date: Thu, 26 Oct 2023 17:39:39 +0100 Subject: [PATCH] Signpost important infos for using our JavaScript components More content to be added in #341 --- .../importing-css-assets-and-javascript/index.html.md.erb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/importing-css-assets-and-javascript/index.html.md.erb b/source/importing-css-assets-and-javascript/index.html.md.erb index 3ee96595..fc9d0ea5 100644 --- a/source/importing-css-assets-and-javascript/index.html.md.erb +++ b/source/importing-css-assets-and-javascript/index.html.md.erb @@ -137,6 +137,12 @@ You can also use your own function to generate paths, for example if you're usin ## JavaScript +Before you import JavaScript from GOV.UK Frontend, you'll need to add the following to the top of the `` section of your page template (if you're not [using our Nunjucks macros](https://frontend.design-system.service.gov.uk/use-nunjucks/)): + +```html + +``` + To import the JavaScript from GOV.UK Frontend, you can either: - add GOV.UK Frontend's JavaScript file to your HTML