You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 17, 2020. It is now read-only.
This reverts commit 1423ca3, because the feature doesn't work as
expected, as described here:
liferay-frontend/liferay-portal#345 (comment)
In short, our testing showed the loader producing code that correctly
inserted `preload` links in the `head`, and the network pane showed
the corresponding resources being fetched, and in the right order. But
the associated styles were not being applied to the DOM, leading to
visual inconsistencies, as well as undesirable console spew of the form:
> The resource .../css/ApplicationsMenu.css was preloaded using link
> preload but not used within a few seconds from the window's load
> event. Please make sure it has an appropriate `as` value and it is
> preloaded intentionally.
To fix this, we might be able to add a second, non-`preload`-ing `link`
tag, but that would defeat the purpose of our original change, which was
to improve our Lighthouse metrics.
So, reverting this for now. We might revisit `preload` for this or some
other purpose in the future.
Original PR: #632
In service of LPS-115876, the idea is to have the css-loader emit:
tags instead of:
ones.
As noted here:
In practice, we don't expect this to make page loads perceptibly faster, but it should at least avoid Lighthouse reporting onload events as delayed.
Related community Slack discussion: https://liferay-community.slack.com/archives/CB2QQ3M5F/p1598598237007500
The text was updated successfully, but these errors were encountered: