Central notice absolutely positioned at the top to cause no shifting of page content at all
Since the CentralNotice banner is inserted using JavaScript, it is not yet present on page load but displays with some delay. When the banner gets inserted, it shifts the whole page content down.
This causes two problems:
- The shifting often takes place when I'm just about to follow a link on my watchlist or on history pages. The moment I click the content shifts down and I'm clicking nowhere or even follow the wrong link. This happens quite a lot actually!
- Even neglecting the shifting issue, the CentralNotice changes layout of pages. Most noticeable, the heading of a page (which I think is a central part of a page if not *the* central part) is shifted. While its at least not an usability problem like 1) I don't like it all personally - what do others think?
I therefore propose to think about a different way to show the CentralNotice. I solved it temporarily with some CSS to absolutely position the "#siteNotice" div at the top of the page (see attachment), but this is far from perfect (It breaks as soon as the buttons are shifted or the browser window is reduced to very small width). However it gives a nice impression of what *could* be possible. I'm sure one could come up with a comparable solution which is nice and clean , though.
Probably also a SEO problem: T298733: SEO impact and major changes to serving banners