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

Only load gigya libraries when actually needed. #76

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

piggito
Copy link
Contributor

@piggito piggito commented Jan 26, 2021

Loading external libraries decreases page performance so we should avoid loading gigya's libraries in all pages.

Instead, we can attach gigya libraries to each one of the blocks which actually use them so we only load the libraries when the blocks get rendered.

@piggito piggito force-pushed the attachment_library branch from f9971aa to 5814a9f Compare May 12, 2021 21:46
@piggito
Copy link
Contributor Author

piggito commented May 12, 2021

Included changes to attach drupalSettings for customScreenSets on block build for a more modular approach.
Also, the approach on develop branch doesn't consider blocks placed on page manager so this PR fixes that issue as well.

@Ynhockey
Copy link
Collaborator

Hi, sorry for taking so long to review, but can you briefly explain why the part where it builds the block info for the front-end (on the server-side) is unnecessary? Thanks!

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