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

Move loadFrontend invocation into body to fix 3rd party library depen… #6902

Merged
merged 1 commit into from
Dec 11, 2019

Conversation

alisman
Copy link
Contributor

@alisman alisman commented Dec 10, 2019

A library used in frontend project (measure-text) requires that document.body be available at parse time (immediately after js is loaded into page). Recent changes to our loading js packaging strategy (having to do with monorepo) moved the library to a different bundle that gets loaded sooner in lifecycle. For this reason, we need to move the loadFrontend call into <body> tag.

Copy link
Member

@inodb inodb left a comment

Choose a reason for hiding this comment

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

Nice find 🥇

@inodb inodb added the cleanup label Dec 10, 2019
@inodb
Copy link
Member

inodb commented Dec 10, 2019

Not really sure how to label this btw, "refactoring" ?

@alisman alisman added the bug label Dec 11, 2019
@alisman alisman merged commit ea1d1f9 into cBioPortal:master Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants