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

Fix preload warning for invalid as attribute. #2500

Merged
merged 1 commit into from
Mar 9, 2016

Conversation

mkhatib
Copy link
Contributor

@mkhatib mkhatib commented Mar 8, 2016

Fixes #2492

@@ -156,7 +156,7 @@ export function addDataAndJsonAttributes_(element, attributes) {
export function prefetchBootstrap(window) {
const url = getBootstrapBaseUrl(window);
const preconnect = preconnectFor(window);
preconnect.prefetch(url, 'document');
preconnect.prefetch(url);
Copy link
Member

Choose a reason for hiding this comment

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

Add comment for why the arg was left out.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@mkhatib
Copy link
Contributor Author

mkhatib commented Mar 9, 2016

PTAL

@cramforce
Copy link
Member

LGTM

mkhatib added a commit that referenced this pull request Mar 9, 2016
Fix preload warning for invalid as attribute.
@mkhatib mkhatib merged commit 8ea891f into ampproject:master Mar 9, 2016
@mkhatib mkhatib deleted the fix-preload-as-warn branch March 9, 2016 00:50
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