Skip to content
Snippets Groups Projects

Lazy load the new inlined code intel APIs

Merged Administrator requested to merge ps/lazy-load-inlined-extensions into main

Created by: philipp-spiess

Based on feedback from this Slack thread.

The inlining of the code intel APIs caused the legacy code intel extension to be completely inlined into the main JavaScript module. Since we do not need it for a first page load (we only need the APIs once we detect the first hover), it makes sense that all APIs are lazily loaded.

I made the split inside the createNoopLoadedController which already supported a lazily loaded API. This file no longer has a hard dependency on any file in the codeintel folder.

Note: I used git mv to make sure that the rename would properly be added to version control but it seems like the git diff still shows this as a deletion and addition :cry:

Test plan

  • Tests must pass and show a reduction of main JS bundle size.
  • I manually loaded it and verified that code intel still works

App preview:

Check out the client app preview documentation to learn more.

Merge request reports

Merged by avatar (Apr 29, 2025 8:08pm UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading