Skip to content

Uncaught TypeError: Cannot read property 'className' of null at HTMLLinkElement.onload #1

Description

@Tjitse-E

Hi,

After installing this theme in combination with Magento 2.2/PHP 7.1 and:

snowdog/frontools 1.5.8  
snowdog/theme-blank-sass  0.10.1  

The following occurs after loading:
31402151-6d10d23c-adf5-11e7-9676-ac436e3fbd61

This results in a missing 'loaded' class on the <body> tag. Somehow this doesn't work in my current setup:

 <link href="<?= $this->assetRepo->getUrl('css/styles.css') ?>"
              rel="preload"
              as="style"
              onload="this.rel='stylesheet';document.body.className+=' loaded'"
/>

Any idea why?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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