-
Notifications
You must be signed in to change notification settings - Fork 1
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
[CD-515] GTM deferred #383
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't diffed it against the original module, but it all looks right.
My 2 cents
|
Some things that need fixing picked up in tests:
|
The reason was because it's a days-long battle for me to add a route to Drupal, but adding a static JS file took me a few minutes. I made the new UN-OCHA repo (not renamed) and will ask for your help if I can't figure it out by day's end. |
So, we did end up forking the module into our GH org. Closing this prototype PR as it served its purpose. |
CD-515
Forked the gtm_barebones module after confirming that the maintainer did not want to adopt the change.
defer
attribute.drupalSettings
so that the module can output a static JS file that never needs rebuilding, even if config changes.gtm_barebones
toocha_gtm
)If people are happy with this, I'll put it in a standalone repo using the Drupal module as an upstream so that we can get security updates.