Skip to content

No spaces available between attributes of the critical path CSS links #27327

Closed
@onepack

Description

@onepack

Preconditions (*)

  1. PHP 7.2
  2. Magento 2.3.4

Steps to reproduce (*)

  1. Enable the CSS critical path
  2. Check the source of the page

Expected result (*)

  1. Expected to see the correct critical path URLs

Actual result (*)

  1. I get an error in Firefox sourcecode of the page that there are no spaces available between attributes of the critical path CSS links
  2. Example:
<link rel="preload" as="style" media="all" .
                         onload="this.onload=null;this.rel='stylesheet'"href="https://www.domain.coml/pub/static/version1584400998/_cache/merged/eab50c6fab344632384864f164c807d1.min.css">
<link rel="preload" as="style" media="screen and (min-width: 768px)" .
                         onload="this.onload=null;this.rel='stylesheet'"href="https://www.domain.com/pub/static/version1584400998/frontend/Vendor/theme/us_US/css/styles-l.min.css">


Metadata

Metadata

Assignees

Labels

Issue: Format is validGate 1 Passed. Automatic verification of issue format passedReported on 2.3.4Indicates original Magento version for the Issue report.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions