News for hackers. Stuff that matters.
Re:Dear Microsoft: Please Do Pinned Menus Like This by wccrawford on Saturday September 25, 2010 @06:45PM (#1728058)
I have to agree with this article in that there is FAR too much text being added to the webpage for this functionality. Separating it out into a separate file is the way to go. You know, like CSS already does.
Re:Dear Microsoft: Please Do Pinned Menus Like This by ollysb on Sunday September 26, 2010 @05:58AM (#1728921)
I also agree. Given that the pinned menu isn't even rendered in the browser it seems strange to describe this resource in a page. The lifecycle doesn't fit at all. If the content of the pinned menu changes I wouldn't expect to have to reload a page in the browser. Windows will be making a request for the page resource and then completely ignoring the html.
Re:Dear Microsoft: Please Do Pinned Menus Like This by sosuke on Saturday September 25, 2010 @07:16PM (#1728104)
I wonder what the trade off is for 1KB of text or an extra HTTP request.
Re:Dear Microsoft: Please Do Pinned Menus Like This by masklinn on Saturday September 25, 2010 @08:34PM (#1728222)
The extra HTTP request only has to be performed on pinning, probably only once (or at least only once in a long time depending on the HTTP headers, and the refresh of the file can be performed asynchronously by the browser when and where it thinks it should check) and only by users actually able to pin (so IE9 users).
Re:Dear Microsoft: Please Do Pinned Menus Like This by noibl on Saturday September 25, 2010 @08:07PM (#1728187)
The external resource can be cached, pre-generated, shared, managed separately from your page templates.

The main argument seems to be that the metadata involved here is to do with the site, not the page, whereas <meta> tags should be for resource-specific use.

Re:Dear Microsoft: Please Do Pinned Menus Like This by ElbertF on Saturday September 25, 2010 @07:55PM (#1728166)
The main advantage of a separate file is that it can be cached by the client.
Re:Dear Microsoft: Please Do Pinned Menus Like This by scotth on Saturday September 25, 2010 @07:25PM (#1728120)
Well...that's a good question from a performance standpoint, but it's more than that. Readability is important too.
Re:Dear Microsoft: Please Do Pinned Menus Like This by Yzupnick on Saturday September 25, 2010 @07:36PM (#1728137)
I up voted both these comments because it just goes to show that different people care about different things. It is not a matter of better, just a matter of preference.
Re:Dear Microsoft: Please Do Pinned Menus Like This by psadauskas on Saturday September 25, 2010 @11:27PM (#1728454)
The tradeoff is the same as an external JavaScript or stylesheet, which noone seems to mind. Plus, only some clients will be downloading the menu.xml.
Re:Dear Microsoft: Please Do Pinned Menus Like This by kroc on Saturday September 25, 2010 @08:05PM (#1728183)
Bear in mind that a HTTP Request is significantly slower than the bytes in the page. A request could be anything from .25s to 2 whole seconds, if the bandwidth is saturated. Not least problems with blocking other parallel downloads and delaying the initial paint. HTTP requests that are not images or the CSS are to be absolutely avoided!
Re:Dear Microsoft: Please Do Pinned Menus Like This by thwarted on Saturday September 25, 2010 @08:26PM (#1728212)
Since this isn't used until the menu is pinned, and doesn't show on the page, the time it takes to download should only be taken when the user requests that it be pinned. This shouldn't hold up the page being rendered, since it is not page content.

Edit: Additionally, how does what's in the pinned menu get updated? Does it need to make a full page request to get the new items? This will needlessly inflate pageview numbers in that case (I'm sure the "fix" for that will be that Microsoft will change the User Agent to say that it's not the browser but rather than pinned menu making the request). As for implementation, does the browser create the menu from the this and it's static? Or does the URL to the page get passed to the menu bar where it is pinned and then the menu bar is responsible for making the request? Or does the browser actually run the menu bar -- this seems like the wrong kind of integration.

Re:Dear Microsoft: Please Do Pinned Menus Like This by ataggart on Saturday September 25, 2010 @07:52PM (#1728159)
Wouldn't the trade-off be between an extra 1KB on every page vs. a single extra HTTP request per user?
Re:Dear Microsoft: Please Do Pinned Menus Like This by mrkurt on Saturday September 25, 2010 @08:00PM (#1728177)
Not exactly. It's more like 250-300 bytes gzipped and it's delivered through an established request.