You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pagespeed.apache.org by GitBox <gi...@apache.org> on 2020/09/04 11:41:07 UTC

[GitHub] [incubator-pagespeed-ngx] Lofesa edited a comment on issue #1711: Duplicated javascript files loading in browser based on Chrome

Lofesa edited a comment on issue #1711:
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1711#issuecomment-687090872


   I think the issue is not related to pagespeed module but other plugin you have.
   Some plugin (maybe other way) put files as a link preload header, that is rewrited (have the pagespeed stuf in it) but in the html the file get untouched by pagespeed because it have `<!--This script contains introspective JavaScript and is unsafe to replace.--> 
   `
   Same thing occurs with your jquery.js, but in this case both files (header link and html code) are the same (with pagespeed stuff in it)
   You may avoid this with:
   `pagespeed AvoidRenamingIntrospectiveJavascript off;`
   but this can cause problems. Or can avoid this file to be pushed as a link header and then only load the file in the html code.
   
   ![Captura](https://user-images.githubusercontent.com/22342793/92235222-9edc0f00-eeb3-11ea-86ad-978e9daba1fe.jpg)
   
   ![Captura](https://user-images.githubusercontent.com/22342793/92235327-c59a4580-eeb3-11ea-962d-573a6af5108e.jpg)
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org