[Resolved] createShadowRoot is deprecated and will be removed March 2019

Home Forums Support [Resolved] createShadowRoot is deprecated and will be removed March 2019

Home Forums Support createShadowRoot is deprecated and will be removed March 2019

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #809152
    Enrico

    I have run a test with Google developer audit

    I got this warning:

    Uses deprecated APIs:
    Deprecated APIs will eventually be removed from the browser. Learn more.
    Deprecation / Warning
    URL /content.min.js
    Line 1

    Element.createShadowRoot is deprecated and will be removed in M73, around March 2019. Please use Element.attachShadow instead. See https://www.chromestatus.com/features/4507242028072960 for more details.

    /content.min.js(mgijmajocgfcbeboacabfgobmjgjcoja)

    I am using WordPress 5.1 candidate release. Is GP that is using createShadowRoot?

    #809177
    Enrico

    Was temporarily solved removing autoptimize but then was back.

    #809182
    David
    Staff
    Customer Support

    Glad you got it resolved.

    #809188
    Enrico

    Was too early, the Warning is back ๐Ÿ™‚

    #809196
    David
    Staff
    Customer Support

    Do you have a link to the site? You can edit your original topic and use the Site URL field for privacy.

    #809202
    Enrico

    I have done it, it is a very simple one.

    #809231
    Enrico

    Now is really solved, it was Chrome address bar or some add on. I have used Chrome like in a fresh install and there is no more warning.

    #809370
    David
    Staff
    Customer Support

    Awesome. I was about to say i can’t see the issue. And shodowdom elements are not something GP would be adding ๐Ÿ™‚

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.