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

Remove unnecessary complexity for the site banner/notice #370

Merged
merged 2 commits into from
Nov 19, 2018
Merged

Remove unnecessary complexity for the site banner/notice #370

merged 2 commits into from
Nov 19, 2018

Conversation

supahgreg
Copy link
Contributor

@supahgreg supahgreg commented Nov 18, 2018

This PR simplifies things by inserting the banner/notice at build time, rather than on each client page load via https://www.w3schools.com/lib/w3data.js. There is no benefit to dynamically loading banner.html on every page when Prod changes occur through PRs / Jenkins builds.

Checklist
  • npm test passes
  • contribution guidelines followed here

@adoptopenjdk-github-bot

Now on staging server here.

@karianna karianna added the bug label Nov 19, 2018
@karianna
Copy link
Member

@supahgreg Conflict in your Gulp

There is no point to having JS+XHR calls load a banner/notice fragment for each page (introducing overhead) when the PR process is followed (i.e. the message can be inserted at build time).
@supahgreg
Copy link
Contributor Author

@karianna Thanks, I've rebased to address the conflict.

Copy link
Member

@karianna karianna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - Actually one small request - can you point out where to edit the banner in the CONTRIBUTING.md?

@supahgreg
Copy link
Contributor Author

Sure-- I've added an entry to CONTRIBUTING.md.

@karianna karianna merged commit e94063f into AdoptOpenJDK:master Nov 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants