-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
remove inline.js from head.html and footer.html #9177
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.
Lgtm! One comment. Can you test that our analytics events are working after the change on testing? You should see e.g. a 0.gif
request in the networks panel.
I'm not sure how we can test service worker is still working; maybe try unregistering the service worker on chrome and load the page again to confirm it re-registers.
@cdrini I'm having trouble deploying this to testing, seems like merge conflicts. When you get a chance could you try putting it there for me (probably removing some other commits from testing) so I can check the service worker stuff? |
@cdrini deployed to testing
|
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.
Awesome, thank you for testing! Looks good to me 👍
Closes #9176
This gets ride of inline js from head.html and footer.html.
After this, the only place left is in Swagger but we're still figuring out what to do with that.
Technical
Nothing fancy, just moving the code to the corresponding places.
Testing
I've looked through the code and as far as I can tell, window.q is totally gone, so we can remove these last bits of inline JS in the header and footers. I tested this in part by adding an
alert()
if there was anything added to inline js and browsed the site locally without ever finding such an instance.Screenshot
Stakeholders
@jimchamp since you've reviewed a few other of these.