Background
Followup to T356678.
To unblock the Design systems team for the roll out of Codex with code-splitting support we need to replace the use of codex-search-styles with CodexModule as we did in T356678.
User story
- As a mobile user, I want the mobile experience as optimized as possilbe.
Requirements
- Replace the use of codex-search-styles with CodexModule
BDD
Feature: Optimize Mobile Experience with CodexModule
Scenario: Verify replacement of codex-search-styles with CodexModule on mobile
Given the user visits the mobile domain of Wikipedia
When the user runs "mw.loader.getState('codex-search-styles')" in the JavaScript console
Then the output should return "registered"Design
No change
Test Steps
Test Case: Verify CodexModule Optimization on Mobile
- Navigate to the mobile domain of Wikipedia using a mobile device or a mobile device emulator in a web browser.
- Open the JavaScript console (this can usually be done via developer tools in most modern browsers).
- Enter the command: mw.loader.getState('codex-search-styles') and press Enter.
- AC1: Confirm that the console returns 'registered'.
QA Results - Beta
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T356688#9730894 |
QA Results - Prod
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T356688#9745180 |

