Skip to content

Move translations and main snapblocks library code to ext.snapblocks ReourceLoader module - #9

Merged
ego-lay-atman-bay merged 1 commit into
masterfrom
R4356th-patch-1
Jul 29, 2025
Merged

Move translations and main snapblocks library code to ext.snapblocks ReourceLoader module#9
ego-lay-atman-bay merged 1 commit into
masterfrom
R4356th-patch-1

Conversation

@R4356th

@R4356th R4356th commented Jul 29, 2025

Copy link
Copy Markdown
Collaborator

This allows us to load less modules, which should help speed up loading times slightly as MediaWiki has to deal with less metadata now.

@ego-lay-atman-bay

Copy link
Copy Markdown
Member

Sounds good

@ego-lay-atman-bay
ego-lay-atman-bay merged commit 9ea8e68 into master Jul 29, 2025
4 checks passed
@R4356th

R4356th commented Jul 29, 2025

Copy link
Copy Markdown
Collaborator Author

Personally, I would like to only load the translations (because it's taking up about ~170kb in transfer size right now) if they are needed on a page, do you see any issue with that approach, @ego-lay-atman-bay?

@R4356th
R4356th deleted the R4356th-patch-1 branch July 29, 2025 14:10
@ego-lay-atman-bay

Copy link
Copy Markdown
Member

That's not a bad idea. Since this is a primarily english wiki, I don't think loading other languages is needed. If pages have some language set for them, then maybe we could detect that and load the language in snapblocks (though I would have to actually split all the languages into separate files).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants