wfjsw edited a comment on issue #1697: URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1697#issuecomment-659991365
I'll give you a minimal code snippet to start with. Take the example located at [PageSpeed Docs](https://www.modpagespeed.com/doc/filter-prioritize-critical-css): If the HTML document looks like this: ``` <html> <head> <style> .blue {color: blue;} </style> <link rel="stylesheet" href="small.css"> </head> <body> <div class="blue"> Hello, world! </div> </body> </html> ``` And the resource `small.css` is like this: ``` .yellow {background-color: yellow;} .big { font-size: 8em; } .bold { font-weight: bold; } ``` We expect PageSpeed to rewrite it into: ``` <html> <head> <style> .blue{color:blue;} </style> </head> <body> <div class="blue"> Hello, world! </div> </body> </html> <noscript><link rel="stylesheet" href="small.css"></noscript> ``` However, now we are getting this instead: ``` <html> <head> <style> .blue{color:blue;} </style> <link rel="stylesheet" href="small.css"> </head> <body> <div class="blue"> Hello, world! </div> </body> </html> <noscript><link rel="stylesheet" href="small.css"></noscript> ``` If things are getting worse, we may have: ``` <html> <head> <style> .blue{color:blue;} </style> <link rel="stylesheet" href="small.css"> </head> <body> <div class="blue"> Hello, world! </div> </body> </html> <noscript> <style> .blue{color:blue;} </style> <link rel="stylesheet" href="small.css"> </noscript> ``` ---------------------------------------------------------------- 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