<https://forum.squarespace.com/topic/195919-scroll-to-products-on-category-change/#comment-469148>
<http://schema.org/text>
"Add the following to Settings &gt; Advanced &gt; Code Injection &gt; HEADER.\n \n\n\n&lt;script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js\"&gt;&lt;/script&gt;\n\n&lt;script src=\"https://d1j8mu9lowy9zf.cloudfront.net/twcsl/0.1d5/twcsl.js\"&gt;&lt;/script&gt;\n\n\n\tAdd the following to Store Settings &gt; Advanced &gt; Page Header Code Injection for the store page.\n \n\n\n&lt;script&gt;\n\n  $( ( ) =&gt; {\n  \n    /*\n    \n    scroll to top of store category product grid\n    \n    Version       : 0.1d0\n    \n    SS Version    : 7.1\n    \n    Dependancies  : jQuery\n                    \n                    twcsl\n                    \n    By            : Thomas Creedon &lt; http://www.tomsWeb.consulting/ &gt;\n    \n    */\n    \n  // bail if not store category page\n  \n  if ( ! twcsl.storePage.hasCategory ) return;\n  \n  const productsListTop = $( '.products-list' )\n  \n    .offset ( )\n    \n    .top;\n    \n  window.scrollTo ( 0, productsListTop );\n  \n  } );\n  \n  &lt;/script&gt;\n\n\n\tLet us know how it goes.\n "
<https://forum.squarespace.com/topic/195919-scroll-to-products-on-category-change/#comment-471310>