Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure AssetHelper to load individual stylesheets #2734

Merged

Conversation

jon-kirwan
Copy link
Contributor

@jon-kirwan jon-kirwan commented Apr 3, 2023

What

https://trello.com/c/fc41oyEK/1923-enable-individual-loading-of-stylesheets-in-government-frontend

Changes to load component and view style sheets only required on the page being viewed. For example, CSS for _detailed-guide only loads on the following page type e.g. waste exemption: NWFD 2 temporary storage at the place of production.

Why

This reduces the amount of CSS required for each page and increases the ability of a browser to cache the stylesheets - this should mean a faster load time for both first time and repeat visitors.

See RFC #149 for more details.

Review URL(s)

Service manual

Manuals

HMRC manuals

Visual changes

None

Prerequisites

Anything else

@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 April 3, 2023 10:19 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 April 5, 2023 10:08 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 April 5, 2023 13:37 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 April 5, 2023 14:11 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 April 5, 2023 15:19 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 April 6, 2023 10:07 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 April 6, 2023 10:28 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 April 6, 2023 12:48 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 April 6, 2023 13:22 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 April 6, 2023 13:34 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 April 6, 2023 14:10 Inactive
@jon-kirwan jon-kirwan force-pushed the configure-asset-helper-to-load-individual-stylesheets branch from ff7663a to bec8b2c Compare April 6, 2023 14:39
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 April 6, 2023 14:39 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 April 6, 2023 15:01 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 April 11, 2023 10:49 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 April 11, 2023 11:01 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 April 11, 2023 11:18 Inactive
@jon-kirwan jon-kirwan force-pushed the configure-asset-helper-to-load-individual-stylesheets branch from c799688 to f2627cd Compare April 11, 2023 11:31
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 April 11, 2023 11:32 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 April 11, 2023 11:34 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 April 11, 2023 11:37 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 April 11, 2023 11:45 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 April 11, 2023 13:16 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 April 11, 2023 13:55 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 April 11, 2023 14:44 Inactive
@jon-kirwan jon-kirwan force-pushed the configure-asset-helper-to-load-individual-stylesheets branch from e540251 to f198c6f Compare April 11, 2023 15:35
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 April 11, 2023 15:35 Inactive
@jon-kirwan jon-kirwan force-pushed the configure-asset-helper-to-load-individual-stylesheets branch from f198c6f to 88df77f Compare April 11, 2023 16:45
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 April 11, 2023 16:45 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 April 12, 2023 14:57 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 May 5, 2023 08:52 Inactive
@jon-kirwan jon-kirwan force-pushed the configure-asset-helper-to-load-individual-stylesheets branch from 84a7a61 to d37b24c Compare May 5, 2023 09:06
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 May 5, 2023 09:06 Inactive
@jon-kirwan jon-kirwan force-pushed the configure-asset-helper-to-load-individual-stylesheets branch from d37b24c to 925b699 Compare May 5, 2023 09:21
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 May 5, 2023 09:21 Inactive
@jon-kirwan jon-kirwan force-pushed the configure-asset-helper-to-load-individual-stylesheets branch from 925b699 to aecf4c0 Compare May 10, 2023 13:13
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 May 10, 2023 13:14 Inactive
@jon-kirwan jon-kirwan force-pushed the configure-asset-helper-to-load-individual-stylesheets branch from aecf4c0 to 1a8ef95 Compare May 15, 2023 14:52
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 May 15, 2023 14:52 Inactive
@jon-kirwan jon-kirwan force-pushed the configure-asset-helper-to-load-individual-stylesheets branch from 1a8ef95 to 8951e0f Compare May 17, 2023 08:57
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 May 17, 2023 08:58 Inactive
@jon-kirwan jon-kirwan force-pushed the configure-asset-helper-to-load-individual-stylesheets branch from 8951e0f to d4db00b Compare May 17, 2023 12:09
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 May 17, 2023 12:10 Inactive
@jon-kirwan jon-kirwan force-pushed the configure-asset-helper-to-load-individual-stylesheets branch from d4db00b to b0fd09e Compare May 17, 2023 12:16
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 May 17, 2023 12:16 Inactive
@jon-kirwan jon-kirwan marked this pull request as ready for review May 17, 2023 12:22
@jon-kirwan jon-kirwan force-pushed the configure-asset-helper-to-load-individual-stylesheets branch from b0fd09e to d2bb38a Compare May 18, 2023 10:42
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 May 18, 2023 10:42 Inactive
@jon-kirwan jon-kirwan force-pushed the configure-asset-helper-to-load-individual-stylesheets branch from d2bb38a to f5962e1 Compare June 5, 2023 09:20
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 June 5, 2023 09:20 Inactive
Copy link
Contributor

@MartinJJones MartinJJones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing work on this one!

Tested the changes as well on integration as well and all looks OK 👍

@jon-kirwan jon-kirwan force-pushed the configure-asset-helper-to-load-individual-stylesheets branch from f5962e1 to 7e7f81e Compare June 5, 2023 11:02
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2734 June 5, 2023 11:02 Inactive
@jon-kirwan jon-kirwan merged commit eb3d8c7 into main Jun 5, 2023
6 checks passed
@jon-kirwan jon-kirwan deleted the configure-asset-helper-to-load-individual-stylesheets branch June 5, 2023 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants