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

[EXAMPLE] Update assets loading in the demo #1953

Merged
merged 2 commits into from
May 9, 2022

Conversation

tbouffard
Copy link
Member

@tbouffard tbouffard commented May 5, 2022

White logo: use svg source instead of png
Remove the 'logo' class assignment as there is no CSS class named 'logo'
Use newer fontawesome v6 icons

before (fontawesome v5) now (fontawesome v6)
fontawesome_v5 fontawesome_v6

fontawesome_change

White logo: use svg source instead of png
Remove the 'logo' class assignment as there is no CSS class named 'logo'
Use newer fontawesome v6 icons
@tbouffard tbouffard added the example This issue or pull request is related to the lib demo or examples label May 5, 2022
@github-actions
Copy link

github-actions bot commented May 5, 2022

♻️ PR Preview 7cf18a1 has been successfully destroyed since this PR has been closed.

🤖 By surge-preview

@@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>BPMN Visualization Demo</title>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v6.1.1/css/all.css">
Copy link
Member Author

Choose a reason for hiding this comment

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

Here we are still loading the whole fontawesome resources whereas we are only using 2 classes (the 2 icons of the upload BPMN diagram button).
We may use https://fontawesome.com/v6/docs/web/setup/use-kit to create a minimal file that fit our needs.

@csouchet csouchet enabled auto-merge (squash) May 9, 2022 09:04
@csouchet csouchet merged commit b5630a3 into master May 9, 2022
@csouchet csouchet deleted the demo/improve_assets_loading branch May 9, 2022 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
example This issue or pull request is related to the lib demo or examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants