Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SRF should not load ext.srf.style module on all pages #856

Open
alistair3149 opened this issue Oct 30, 2024 · 0 comments
Open

SRF should not load ext.srf.style module on all pages #856

alistair3149 opened this issue Oct 30, 2024 · 0 comments

Comments

@alistair3149
Copy link
Contributor

alistair3149 commented Oct 30, 2024

Setup

  • SRF version: 4.2.1
  • SMW version: 5.0.0-alpha
  • MW version: 1.39.10
  • PHP version: 8.1.30
  • DB system (MySQL, Blazegraph, etc.) and version: 11.4.3-MariaDB-ubu2404

Issue

SRF is loading the ext.srf.style module even when the page do not contain any elements that requires it.
These unused styles are render-blocking and significantly affect the load time of the page.

Steps to reproduce:

  1. Go on any pages.
  2. Open your browser's dev tools and inspect network request
  3. Note the first load.php stylesheet URL

For visibility purpose, I am linking a similar issue for SMW: SemanticMediaWiki/SemanticMediaWiki#5743

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants