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

feat: Add dedicated method to load init scripts #40323

Merged
merged 1 commit into from Sep 8, 2023
Merged

Conversation

juliushaertl
Copy link
Member

@juliushaertl juliushaertl commented Sep 7, 2023

During development on text I noticed that the new files2vue file list is loading too fast and fetching the file list before text has even had a chance to register additional dav properties on the initial page load.

This adds a method to allow apps registering init scripts which are loaded first (even before any core javascript). They need to be handled with care, but I indicated that also on the phpdoc comment.

Change itself is from @skjnldsv, I just shaped it to a pull request.

Example usage: nextcloud/text@0eb23bb

Checklist

@juliushaertl juliushaertl requested review from mejo-, skjnldsv, a team, sorbaugh and come-nc and removed request for a team September 7, 2023 08:40
@juliushaertl juliushaertl added enhancement 3. to review Waiting for reviews labels Sep 7, 2023
@juliushaertl juliushaertl added this to the Nextcloud 28 milestone Sep 7, 2023
lib/public/Util.php Outdated Show resolved Hide resolved
@skjnldsv skjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Sep 7, 2023
lib/public/Util.php Outdated Show resolved Hide resolved
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Co-authored-by: John Molakvoæ <skjnldsv@protonmail.com>

Update lib/public/Util.php

Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
@skjnldsv skjnldsv merged commit 747d9ef into master Sep 8, 2023
37 of 38 checks passed
@skjnldsv skjnldsv deleted the enh/init-scripts branch September 8, 2023 06:50
@ChristophWurst ChristophWurst added the pending documentation This pull request needs an associated documentation update label Oct 18, 2023
@ChristophWurst
Copy link
Member

this new feature needs docs

@skjnldsv
Copy link
Member

this new feature needs docs

nextcloud/documentation#11230

@juliushaertl juliushaertl removed the pending documentation This pull request needs an associated documentation update label Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants