Only load gallery styling rules when galleries are on the page
authorjdlrobson <jdlrobson@gmail.com>
Fri, 21 Aug 2015 23:59:02 +0000 (16:59 -0700)
committerjdlrobson <jdlrobson@gmail.com>
Wed, 26 Aug 2015 20:20:15 +0000 (13:20 -0700)
commitc845586dc7a6b8d274a376433a42f7b5d4fd28ac
tree476b11adddb840b9807c9e596649cebf6025122b
parent0373da7eb32dbc14daaf095183a52f42a4c409b1
Only load gallery styling rules when galleries are on the page

* Double load styling rules in legacy modules so we have time for
cached pages to catch up
** Double loading styles is acceptable for 30 days. There is no better way.
* Load gallery css when gallery tag invoked.

To test:
* Visit a page with a gallery tag and purge it, note styles are present.
* Visit a page without a gallery tag and purge it, note styles are not present

Bug: T98878
Change-Id: Ib1aef04dc4fece78e6615386ecaef6a9f368f49e
includes/parser/Parser.php
resources/Resources.php
resources/src/mediawiki.legacy/commonPrint.css
resources/src/mediawiki.legacy/shared.css
resources/src/mediawiki.page/mediawiki.page.gallery.css [new file with mode: 0644]
resources/src/mediawiki.page/mediawiki.page.gallery.print.css [new file with mode: 0644]