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

add support for link preload hrefs #19

Merged
merged 2 commits into from
Jun 16, 2016
Merged

Conversation

akrawchyk
Copy link
Contributor

This PR adds support for preload links as specified here https://w3c.github.io/preload/.

like : ""

}
}</script><script src="//platform.twitter.com/oct.js"></script><script>twttr.conversion.trackPid('l4mg5');</script><noscript><img height="1" width="1" style="display:none;" alt="" src="https://analytics.twitter.com/i/adsct?txn_id=l4mg5&p_id=Twitter" /> <img height="1" width="1" style="display:none;" alt="" src="//t.co/i/adsct?txn_id=l4mg5&p_id=Twitter" /></noscript></body></html>
Copy link
Owner

Choose a reason for hiding this comment

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

I can't help but feel like this is a little OTT for a test page. Are we using this here for a specific reason? If not, would it be possible to simplify it down into something that doesn't rely on as much third-party content and scripts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Whoops, I think that is a copy pasta error, my mistake! I'll replace it with a smaller test file.

@addyosmani
Copy link
Owner

PR LGTM minus the test.html file used. @akrawchyk could you comment on that and we can work on getting this landed soon and chase up the PR in critical right after?

@addyosmani addyosmani self-assigned this Jun 16, 2016
@@ -8,6 +8,7 @@
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css" />
<link rel="stylesheet" href="styles/main.css">
<link rel="preload" href="styles/preload.css" as="style">
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@addyosmani in reference to https://github.com/addyosmani/oust/pull/19/files#r67332062, this is the only adjustment I made for the test. The test.html file was for my use case and wasn't meant to be committed.

@addyosmani addyosmani merged commit 2578fe0 into addyosmani:master Jun 16, 2016
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