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

Docs: load all JS files from node_modules #1518

Merged
merged 1 commit into from
Dec 26, 2022
Merged

Docs: load all JS files from node_modules #1518

merged 1 commit into from
Dec 26, 2022

Conversation

XhmikosR
Copy link
Member

@XhmikosR XhmikosR commented Nov 26, 2022

We load 3 JS files:

  1. bootstrap.min.js
  2. application.js (which has clipboard and the application code)
  3. list.js (which has list.js)

All 3 JS files are loaded asynchronously.

In the future, if we need to call Bootstrap through its API, we might need to adapt the bundles.

This also improves a little page load times since all JS files are now loaded asynchronously. So, this PR along with #824 should improve things noticeably especially on slower devices/browsers.

@XhmikosR XhmikosR added the docs Improvements or additions to documentation label Nov 26, 2022
@XhmikosR XhmikosR requested a review from mdo November 26, 2022 05:58
@XhmikosR XhmikosR marked this pull request as ready for review November 26, 2022 05:58
@XhmikosR XhmikosR force-pushed the xmr/docs-js branch 6 times, most recently from 736e7d4 to d519692 Compare November 27, 2022 15:57
We load 3 JS files:

1. bootstrap.min.js
2. application.js (which has clipboard and the application code)
3. list.js (which has list.js)

All 3 JS files are loaded asynchronously.

In the future, if we need to call Bootstrap through its API, we might need to adapt the bundles.
@mdo mdo merged commit 343738c into main Dec 26, 2022
@mdo mdo deleted the xmr/docs-js branch December 26, 2022 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants