resourceloader: Move style deprecation warnings to <body>
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 22 May 2018 17:58:04 +0000 (18:58 +0100)
committerKrinkle <krinklemail@gmail.com>
Tue, 22 May 2018 22:14:22 +0000 (22:14 +0000)
commit2db395abfc5e6fc4035acc359a1fb6e62fad61fb
treebe1148ba83a81e1960f291c8e0711d10a2642523
parent39ca88374ed3bb9c40ea7fe0ff4c5e79e1ebef6e
resourceloader: Move style deprecation warnings to <body>

Follows-up If35a106c7. These log messages are not criticial and
should not be in the <head> competing with stylesheets and article
content. Move them to the end of <body> instead, nearby other
low-priority script tags.

The getBodyHtml() method from ClientHtml was empty, but has been
non-empty in the past. It's fine to repopulate.

Also, while ClientHtml::getBodyHtml was empty, there are additional
RLQ scripts created by OutputPage that do exist even without this.
Namely, there is a <script> for wgPageParseReport, and one for
wgBackendResponseTime etc.

Change-Id: Ibda7091bdcd5ed207395b20196cdc33df926a24c
includes/resourceloader/ResourceLoaderClientHtml.php
tests/phpunit/includes/resourceloader/ResourceLoaderClientHtmlTest.php