We are nearing feature-completion for Special:MediaSearch, so now is a good time to look at various performance optimizations and improvements that can be made to ensure the experience is as streamlined as possible.
There will inevitably be some compromises because we are trying to support two separate UI modes: JS-enabled and PHP fallback, and we don't (yet) have infrastructure available for server-side rendering of Vue.js components.
Here's what Google's PageSpeed Insights report says about Special:MediaSearch. Measurements include a server-generated query ("desert"), not just the empty UI.
Recommendations from Google
Reduce Server response time: work is already being done to improve the MediaSearch back-end, so we can set this aside for now
- Serve images in next-gen formats: does MediaWiki support better ways to generate thumbnails than what we are doing now?
- Properly size images: panoramas in particular seem to be a problem here
- Eliminate render-blocking resources: This is less of an issue, only 0.2s or so of savings here. Does MediaWiki provide any way to inline critical path CSS/JS?