Wanted to help do some Lit@2 upgrade testing to see if I could reproduce the above issue. From what I can tell, it comes down to the way the serialized HTML is coming out from puppeteer which, when can combined with Greenwood's static optimization settings, results in issue like above and below.
Details
Before
On production today, here is the HTML you get for. index.html.
Related Issue
https://github.com/ProjectEvergreen/greenwood/pull/611#issuecomment-888402531
Wanted to help do some Lit@2 upgrade testing to see if I could reproduce the above issue. From what I can tell, it comes down to the way the serialized HTML is coming out from puppeteer which, when can combined with Greenwood's static optimization settings, results in issue like above and below.
Details
Before
On production today, here is the HTML you get for. index.html.
After
In this PR, this is what you get now (notice the absence of pre-rendered
<style>
tags in the<head>
)But if I revert the
data-gwd-opt="static"
change, then everything is back to normal.