applibs opened a new issue #2056:
URL: https://github.com/apache/incubator-pagespeed-mod/issues/2056


   This version X-Mod-Pagespeed: 1.13.35.2-0 broken order processing 
javascripts.
   Some my files are like:
   <script defer src="jquery.js"></script>
   <script defer src="external-script-1.js"></script>
   but it will generate:
   <script type="text/javascript" charset="UTF-8" defer>
   //<![CDATA[
   .... content of my JS file
   //]]>
   </script>
   
   Its impossible because defer attribute by specification not work with 
inlined javascript. Soo, when I am using jQuery in my external-script-1.js my 
scripts is broken because "Uncaught ReferenceError: jQuery is not defined". Its 
because pagespeed ignore defer and moved to source code to <script> which is 
loaded faster then my jQuery.
   Pagespeed must ignore <script> with attribute defer!


----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to