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

Large index.js File Causes Slow Page Reload #24268

Open
yakupsogut opened this issue Dec 20, 2024 · 0 comments
Open

Large index.js File Causes Slow Page Reload #24268

yakupsogut opened this issue Dec 20, 2024 · 0 comments

Comments

@yakupsogut
Copy link

Describe the Improvement

Problem: Large index.js File Causes Slow Page Reload

Description

The current approach of bundling all Directus extensions into a single index.js file located at:

{directus_url}/extensions/sources/index.js

...causes significant delays when reloading the page, especially as the number of extensions grows. As this file increases in size, it impacts performance and results in slower load times.

Steps to Reproduce

  1. Add multiple extensions to Directus.
  2. Refresh the Directus app page.
  3. Observe the long loading time due to the large index.js file.

Expected Behavior

Extensions should load efficiently without negatively impacting page reload times. Possible solutions could include:

  • Splitting the index.js file into smaller chunks.
  • Utilizing a dynamic module loader to handle extensions on-demand.

Actual Behavior

All extensions are bundled into a single, large file, leading to slow reloads as the file size grows.

Visual Evidence

image

Another project with little extension
image

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