New issue
Advanced search Search tips

Issue 692359 link

Starred by 5 users

Issue metadata

Status: Duplicate
Merged: issue 19237
Owner: ----
Closed: Feb 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Support Link header rel stylesheet

Reported by criscanb...@gmail.com, Feb 15 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36

Steps to reproduce the problem:
1. Send the following HTTP header ahead of a web page 
Link: </style.css>; rel="stylesheet"
2. Observe not attempt is made to fetch style.css. 

What is the expected behavior?
Link rel stylesheet should cause the named stylesheet to be fetched and applied to the resource.

My Use Case ( as an example ).

Serving an App on Google App Engine. Using the following in app.yaml

- url: /
  static_dir: pages
  http_headers:
    Link: </style.css>; rel="stylesheet"

I really want style.css to be applied to these pages.
What I am doing is serving a static site without any templating engine. I use a seamless iframe in the main content panel of my landing page as the link target for all the navigation links in the main nav bar. These when clicked can then display ( seamlessly ) in the main content panel. If I had use of Link header I could just treat each page like the smallest possible unit of markup needed for its representation. As it is, I must add a link tag to each page.

This is annoying because I already solved the problem of minimal reuse without a templating engine by using a named iframe as the anchor target for navigation links. 

It is disappointing to me I cannot use this W3C / IETF standard. Especially since, and this makes a lot of sense to me, the Link header is supposed to be semantically equivalent to the link tag.

I'm sure there are a bunch of reasons that mitigate against this being implemented. AFAIK the load cycle of a page is fraught with complexity and vulnerabilities. New features just introduce more of these. And without cross browser uptake -- what's the point? Still...sometimes you have to lead the way. So I hope Chrome can please okay support for rel=stylesheet in the Link header. We're already part of the way there. We may as well finish it to the spec. 

Links are cool. 

What went wrong?
Support for prefetch etc has been added to Chrome. 

https://bugs.chromium.org/p/chromium/issues/detail?id=58456 requested a new issue be filed detailing a use case for rel stylesheet.

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 56.0.2924.87  Channel: stable
OS Version: 10.0
Flash Version: Shockwave Flash 24.0 r0

 
Labels: Needs-Triage-M56

Comment 2 by math...@qiwi.be, Feb 15 2017

Mergedinto: 19237
Status: Duplicate (was: Unconfirmed)

Sign in to add a comment