From 8fe6dc237ae25173e567df14c034454f1dcd5263 Mon Sep 17 00:00:00 2001 From: Colin Rotherham Date: Thu, 7 Dec 2023 21:40:06 +0000 Subject: [PATCH 1/4] =?UTF-8?q?Add=20JavaScript=20=E2=80=9CBefore=20you=20?= =?UTF-8?q?start=E2=80=9D=20subheading?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/importing-css-assets-and-javascript/index.html.md.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 c526b88e..59e4ab85 100644 --- a/source/importing-css-assets-and-javascript/index.html.md.erb +++ b/source/importing-css-assets-and-javascript/index.html.md.erb @@ -160,7 +160,9 @@ 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](/use-nunjucks/)): +### Before you start + +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](/use-nunjucks/). ```html From 21be7b3ef7cd897e7cd4e954649df75d0670d3db Mon Sep 17 00:00:00 2001 From: Colin Rotherham Date: Thu, 7 Dec 2023 21:38:56 +0000 Subject: [PATCH 2/4] Show `.govuk-frontend-supported` snippet in example --- source/importing-css-assets-and-javascript/index.html.md.erb | 3 +++ 1 file changed, 3 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 59e4ab85..7e070cb1 100644 --- a/source/importing-css-assets-and-javascript/index.html.md.erb +++ b/source/importing-css-assets-and-javascript/index.html.md.erb @@ -184,7 +184,10 @@ Then import the JavaScript file before the closing `` tag of your HTML pa ```html + + + ``` From e8b73f4e7f3f4befd3ff96e65bf52be425c04e04 Mon Sep 17 00:00:00 2001 From: Colin Rotherham Date: Thu, 7 Dec 2023 21:41:53 +0000 Subject: [PATCH 4/4] Clarify purpose of `