Skip to content

Prevent flash of unstyled content #17

@jedcrowther

Description

@jedcrowther

I was getting a flash of unstyled content on the Lyttelton Museum staging site.

By removing the true parameter in this line of code I was able to prevent this. I had a look over other craft twigpack projects and none of them were set to true.

Could we please investigate why the true parameter has been included with the function (do we need to asynchronously load the css? Interesting that by default this function is set to false but are there potential benefits we are missing out on by not asynchronously loading it?) and whether or not there is a better way of preventing the flash other than removing the parameter. More info in the docs here.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions