Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-115876

Make dynamic styles preload instead of block

    Details

    • Type: Story
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Currently, in DXP, we provide the option dynamically load CSS from JS through our liferay-npm-bundler-loader-css-loader.

      The loader will inject a style link in the page for each import Foo.css it finds.

      In the case that the script that triggers the load runs inside <head>, the injected <style> tags will be render-blocking.

      The goal of this Story is to analyze the impact of such a behaviour and if necessary, make the loader output a <link as="style" rel="preload" /> instead.

        Attachments

          Activity

            People

            • Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              jose.balsas Chema Balsas
              Recent user:
              Chema Balsas
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Packages

                Version Package