Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Only load reference provider js when needed

Đang mở
#9,250 0 bình luận 1 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@max-nextcloud đang làm issue này rồi.

Từ ngày 24/9/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

1. to develop Android client: 🤖🍏 mobile dependencies: javascript enhancement javascript mobile performance 🚀 skill: frontend technical debt ux

Is your feature request related to a problem? Please describe.
Currently loading a page that contains text or a note in the Android notes app gets the js for all reference providers. This in turn pulls in large parts of the apps assets and in particular core-common.js - resulting in so many js assets that they cannot be cached in a webview.

Describe the solution you'd like
Rather than relying on a minimal js being served by all the apps - only load the js for a given preview when there is one being rendered in the page.

Describe alternatives you've considered
Add the async loading entry point in all apps defining a reference provider. That would be much more places that need to be touched and it would rely on every app dev getting it right.

Additional context
This is mostly a problem in the notes app for android.

Ngôn ngữ chính
JavaScript
Star
665
Fork
133
Merge trung bình
1 ngày 17 giờ
Pull request đã merge (30 ngày)
172

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nextcloud/text

Tất cả issue của nextcloud/text

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.