https://bugzilla.wikimedia.org/show_bug.cgi?id=58086

--- Comment #2 from Ori Livneh <[email protected]> ---
(In reply to comment #1)
> Given ResourceLoader, this should be pretty easy, right?

The difficulty is correctly identified in a comment in
TimedMediaHandler.hooks.php:

        // We should probably move this script output to a parser function but
not working correctly in
        // dynamic contexts ( for example in special upload, when there is an
"existing file" warning. )

In other words, it's trivial to only include the stylesheet on article pages
that contain timed media, but that doesn't cover cases in which a page's
content is loaded via AJAX and injected into the current page. There are
probably only a few such dynamic cases. My preference -- for this and for the
JavaScript payload which accompanies it -- would be to expose them by reverting
the load-everywhere workaround, and then wait for the bugs to trickle in.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to