Want to subscribe to topics you're interested in?
Become a Member

Nginx PageSpeed SSL Defer JavaScript - Fetching scripts with an invalid type/language attributes is deprecated

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by buik, Jan 4, 2017.

Tags:
  1. buik

    buik “The best traveler is one without a camera.”

    2,043
    527
    113
    Apr 29, 2016
    Flanders
    Ratings:
    +1,690
    Local Time:
    5:49 AM
    Using an ssl test site (data is fetched via pagespeed FetchHttps enable) + the latest Pagespeed with the Defer JavaScript filter on will trigger the warning below:

    "Fetching scripts with an invalid type/language attributes is deprecated and will be removed in M56, around January 2017. "

    The site is working fine with and without filter.

    Disabling the Defer JavaScript filter results in: the warning is gone at once.

    While searching on the Internet I found this:

    Google Groups

    "So, I did a brief analysis of the results of the http archive analysis that Simon ran. Of the 496,827 sites in the dataset, 974 of them have invalid types according to the regex. That's ~.2%. These can be grouped into a few categories:

    132: sifr/prefetch. Presumably just an optimization
    89: pagespeed optimization"


    The strange thing is that despite the warning that in the upcoming Chrome 56,
    Fetching scripts with an invalid type/language attributes is deprecated and will be removed.

    Site works fine with Google Chrome Canaray 57.0.2970.0 and Defer JavaScript on and without warning.
    Site works fine with Google Chrome Beta 56.0.2924.28 and Defer JavaScript on and without warning.
    Site works fine with Google Chrome 55.0.2883.87 and Defer JavaScript on but it will trigger the warning.

    Anyone have experience with this?
     
    Last edited: Jan 4, 2017
  2. eva2000

    eva2000 Administrator Staff Member

    55,796
    12,271
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,857
    Local Time:
    1:49 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  3. buik

    buik “The best traveler is one without a camera.”

    2,043
    527
    113
    Apr 29, 2016
    Flanders
    Ratings:
    +1,690
    Local Time:
    5:49 AM
    Thanks for your reply.
    My post was to see if others are having similar problems.
    As the site runs on a local server, gonna switch it to an open server.
    Takes some time. I will keep you informed.
     
  4. buik

    buik “The best traveler is one without a camera.”

    2,043
    527
    113
    Apr 29, 2016
    Flanders
    Ratings:
    +1,690
    Local Time:
    5:49 AM
    @eva2000 Chrome 56 is released as stable.

    The "Fetching scripts with an invalid type/language attributes is deprecated and will be removed in M56, around January 2017. "
    Warning is finally gone.
    I keep an eye on it.
     
  5. eva2000

    eva2000 Administrator Staff Member

    55,796
    12,271
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,857
    Local Time:
    1:49 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Thanks for the heads up @bassie :)