why optimize css? it blocks rendering test: it’s verbose text-decoration: underline cannot be...
TRANSCRIPT
![Page 1: Why optimize CSS? It blocks rendering test: It’s verbose text-decoration: underline cannot be minified](https://reader036.vdocuments.site/reader036/viewer/2022071808/56649f0c5503460f94c1f21d/html5/thumbnails/1.jpg)
Why optimize CSS?
• It blocks renderingtest: http://www.phpied.com/files/css-loading/table.php
• It’s verbosetext-decoration: underline
cannot be minified to td: u
![Page 2: Why optimize CSS? It blocks rendering test: It’s verbose text-decoration: underline cannot be minified](https://reader036.vdocuments.site/reader036/viewer/2022071808/56649f0c5503460f94c1f21d/html5/thumbnails/2.jpg)
Top 1000 study
1. Grab top Alexa sites2. Start Fiddler3. Load each site4. Export from Fiddler
![Page 3: Why optimize CSS? It blocks rendering test: It’s verbose text-decoration: underline cannot be minified](https://reader036.vdocuments.site/reader036/viewer/2022071808/56649f0c5503460f94c1f21d/html5/thumbnails/3.jpg)
<?php
$file = file('alexa.txt');
foreach ($file as $url) {
launch($url);
}
function launch($url) {
try {
$ie = new COM("InternetExplorer.Application");
$ie->Visible = true; $ie->Navigate2($url);
while ($ie->ReadyState != 4) sleep(1);
$ie->Quit();
} catch (Exception $e) {}
}
?>
![Page 4: Why optimize CSS? It blocks rendering test: It’s verbose text-decoration: underline cannot be minified](https://reader036.vdocuments.site/reader036/viewer/2022071808/56649f0c5503460f94c1f21d/html5/thumbnails/4.jpg)
![Page 5: Why optimize CSS? It blocks rendering test: It’s verbose text-decoration: underline cannot be minified](https://reader036.vdocuments.site/reader036/viewer/2022071808/56649f0c5503460f94c1f21d/html5/thumbnails/5.jpg)