Discover Centmin Mod today
Register Now

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

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

Tags:
  1. bassie

    bassie Active Member

    494
    104
    43
    Apr 29, 2016
    Ratings:
    +312
    Local Time:
    1:56 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

    28,957
    6,574
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,756
    Local Time:
    9:56 AM
    Nginx 1.13.x
    MariaDB 5.5
  3. bassie

    bassie Active Member

    494
    104
    43
    Apr 29, 2016
    Ratings:
    +312
    Local Time:
    1:56 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.
     
    • Like Like x 1
  4. bassie

    bassie Active Member

    494
    104
    43
    Apr 29, 2016
    Ratings:
    +312
    Local Time:
    1:56 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.
     
    • Informative Informative x 1
  5. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,574
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,756
    Local Time:
    9:56 AM
    Nginx 1.13.x
    MariaDB 5.5
    Thanks for the heads up @bassie :)