Skip to content

Optimize gigya script loading#166

Open
mstrelan wants to merge 1 commit intogigya:developfrom
mstrelan:develop
Open

Optimize gigya script loading#166
mstrelan wants to merge 1 commit intogigya:developfrom
mstrelan:develop

Conversation

@mstrelan
Copy link
Copy Markdown

Currently the remote gigya.js file is loaded by Drupal.behaviors once the page is loaded. The recommendation for better performance is to load it in <head> with the async attribute.

There are also a lot of unused dependencies in the library definition that we don't need. From what I can tell:

  • core/jquery is only used for this onLoginHandler example that is never used
  • core/jquery.once is never used
  • core/drupal is only used for Drupal.behaviors which is removed in this PR
  • core/drupal.ajax is never used, but AJAX was references in the file comment, which appears to be copy pasta

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.

1 participant