16

On this Stack Overflow topic, I've seen this strange behaviour:

Enter image description here

It happened right when I started my browser, and it was the first page I loaded. Additionally, the page becomes unresponsive for about 5 seconds (cannot click anything, no hovering reaction). After that, the page wakes up and after you click anywhere else the highlighting disappears.

The behavior is the same after I reload the exact same page. It doesn't happen for me on any other page.

Restarting the browser helped though.

3

1 Answer 1

27

The highlight is a Google search feature, where it’ll show the matching section on the page by adding a specially formatted URL hash fragment (starting with :~:text=). You got to that page by clicking on a featured snippet at the top of a Google search result and are using Chrome. Google rolled out the feature worldwide this week after testing it in limited settings for a while.

This is not a Stack Overflow feature, and the feature is not limited to just Stack Overflow search results. This is Google’s search engine hooking into Google’s browser (and any other browser that supports Google's proposed scroll-to-text fragment specification).

See these instructions on how to turn it off.

Stack Overflow could choose to disable the feature, either by adding a Document-Policy: force-load-at-top HTTP header (which disables all fragment scrolling, including linking to answers and comments), or by disabling featured snippet support entirely. Both options look to me to have too broad an effect, and don't think they would be good options.

1
  • 1
    Would it be in the interest of SO users for SO to conditionally disable the feature on content pertaining to answers with score <0?
    – stevec
    Commented Jun 8, 2020 at 8:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .