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

apps/documents: loading document js only in template, not globally to… #4015

Merged
merged 1 commit into from
Dec 2, 2021

Conversation

philli-m
Copy link
Contributor

@philli-m philli-m commented Dec 1, 2021

… reduce chunk size

}

document.addEventListener('DOMContentLoaded', init, false)
document.addEventListener('a4.embed.ready', init, false)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we think having an init file is a good solution?

},
unload_warning: {
import: './meinberlin/assets/js/unload_warning.js'
},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this gets ride of the annoying console errors finally, I think it's because these need to be initialised right away and do not have dependencies in adhocracy4.js but I don't know for sure

@github-actions
Copy link

github-actions bot commented Dec 1, 2021

Coverage report

Total coverage

Status Category Percentage Covered / Total
🔴 Statements 3.14% 39/1242
🔴 Branches 2.93% 21/716
🔴 Functions 4.15% 17/410
🔴 Lines 6.79% 248/3654

Status of coverage: 🟢 - ok, 🟡 - slightly more than threshold, 🔴 - under the threshold

Report generated by 🧪jest coverage report action from 5228666

@khamui khamui merged commit 74fa763 into main Dec 2, 2021
@khamui khamui deleted the pm-2021-12-js-optermisation branch December 2, 2021 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants