Use `data:` URIs to load assets in WCFSetup
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 14 Jul 2021 09:14:03 +0000 (11:14 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 14 Jul 2021 09:23:37 +0000 (11:23 +0200)
commit600940bc4fe0cbc219ba6fd9a89444aefa07dda5
tree55f66ab392cff8b2717d11d1993ff1bd7445e4a3
parent35d137c970c057adc5bfc996d12a624ebcd2bdb9
Use `data:` URIs to load assets in WCFSetup

With this change the HTML responses generated by WCFSetup are completely
self-contained and do not rely on external requests.

This avoids the proxying of the assets using PHP from the temporary folder at
the expense of slightly bloating the HTML with the embedded CSS.

The total size of the HTML is 530kB before gzip and 200kB after gzip.

Resolves #4394
wcfsetup/install.php
wcfsetup/install/files/lib/system/WCFSetup.class.php
wcfsetup/setup/template/header.tpl
wcfsetup/setup/template/stepInstallPackages.tpl