Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[AssetMapper] Improve link generation script#52869
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
carsonbot commentedDec 2, 2023
Hey! Thanks for your PR. You are targeting branch "7.1" but it seems your PR description refers to branch "7.1 ?". Cheers! Carsonbot |
nicolas-grekas commentedDec 4, 2023
let's do this on 6.4 as a bugfix |
| $this->assertStringContainsString('<link rel="stylesheet" href="/subdirectory/assets/styles/app-preload-d1g35t.css">',$html); | ||
| // non-preloaded CSS file | ||
| $this->assertStringContainsString('"app_css_no_preload": "data:application/javascript,const%20d%3Ddocument%2Cl%3Dd.createElement%28%22link%22%29%3Bl.rel%3D%22stylesheet%22%2Cl.href%3D%22%2Fsubdirectory%2Fassets%2Fstyles%2Fapp-nopreload-d1g35t.css%22%2C%28d.head%7C%7Cd.getElementsByTagName%28%22head%22%29%5B0%5D%29.appendChild%28l%29',$html); | ||
| // $this->assertStringContainsString('"app_css_no_preload": "data:application/javascript,document.head.appendChild(Object.assign(document.createElement("link"),{rel:"stylesheet",href:"/subdirectory/assets/styles/app-nopreload-d1g35t.css"})', $html); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
why this commented line ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
why this commented line ?
The deleted was the old test
The new "commented" line is the humanely readable version of the new test the following line.
You do feel it's useless ?
nicolas-grekasDec 26, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
yes it is, a commented line like this one is not useful for humans (and even less for computers)
nicolas-grekas commentedDec 26, 2023
looks like a rebase is missing :) |
76788f3 to0d7fcb7Comparesmnandre commentedDec 26, 2023
Dropped all commits but mine.. I have this special power to destroy git histories like no-one.. so please double-check i've not done anything wrong there 😅 |
0d7fcb7 to5ad7a1eComparenicolas-grekas commentedDec 27, 2023
Thank you@smnandre. |
Uh oh!
There was an error while loading.Please reload this page.
Avoid JS console warnings due to missing comma and shorten a bit the code
(document.head is available since IE9)
Felt on it while investigating this HTTPS/2/Push thing with Firefox
(poke@weaverryan)
Update: remove the "?" after 7.1 to please carson :)
Update(bis): target 6.4 / bugfix