Skipping seemingly redundant tags page scrolling logic that causes jittering in Firefox. Added hash exclude property to umami script attributes.

This commit is contained in:
DebaucheryLibrarian 2025-12-13 01:46:00 +01:00
parent 79eacee3f0
commit e05ca80f7c
2 changed files with 3 additions and 1 deletions

View File

@ -151,11 +151,13 @@ function calculateActiveCategory() {
activeCategory.value = newCategory;
/* this understandably causes jittering in Firefox, why the need to scroll into the category we're already in?
const activeLink = document.querySelector(`a[href="#${activeCategory.value}"]`);
activeLink.scrollIntoView({
inline: 'center',
});
*/
navigate(`#${activeCategory.value}`, null, { replace: true });
}

View File

@ -70,7 +70,7 @@ async function onRenderHtml(pageContext) {
<meta name="description" content="Keep track of new porn releases and re-discover classics from your favorite porn stars and sites" />
${config.analytics.enabled ? dangerouslySkipEscape(`<script src="${config.analytics.address}" data-website-id="${config.analytics.siteId}" async></script>`) : ''}
${config.analytics.enabled ? dangerouslySkipEscape(`<script src="${config.analytics.address}" data-website-id="${config.analytics.siteId}" data-exclude-hash="true" async></script>`) : ''}
<title>${title}</title>
</head>