Skip to content

Only load gigya libraries when actually needed.#76

Open
piggito wants to merge 3 commits intogigya:developfrom
piggito:attachment_library
Open

Only load gigya libraries when actually needed.#76
piggito wants to merge 3 commits intogigya:developfrom
piggito:attachment_library

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