1

It seems this brakes Chat functionality (Firefox 143 & Chrome 141) for loggen in users. JS from Adsense conflicts with NodeBB core js files Can author check it on his side? The error is something like Service Worker cannot be register on specific conditions.

top 5 comments
sorted by: hot top controversial new old
[-] jonathanrdd@community.nodebb.org 2 points 7 months ago

That definitely sounds like a conflict between the AdSense script and NodeBB's service worker registration. You could try lazy-loading the AdSense JS or excluding it from the scope of the service worker

[-] baris@community.nodebb.org 2 points 7 months ago* (last edited 7 months ago)

This was caused by data-ad-format being set to auto on the widget html, this causes google js to add height:auto!important to all the parent element chain. Removing data-ad-format fixes it. I've added some widget options so it's value can be changed.

[-] twissell@community.nodebb.org 1 points 7 months ago

baris issue has been solved. Thanks a ton!

[-] twissell@community.nodebb.org 1 points 7 months ago

Theoretically, I found a workaround: disable advertisements only on the chat page. Can anybody tell me, how can I achieve this via custom code snippet and/or extension?

[-] jonathanrdd@community.nodebb.org 1 points 6 months ago

Twissell This usually happens when AdSense injects scripts before NodeBB finishes loading its own client files. The service worker fails to register and chat breaks for logged-in users. Try limiting AdSense to guests only or exclude the chat route from the plugin. If the problem disappears, you can report it to the plugin author to adjust the script order so it doesn’t block NodeBB’s core JS.

this post was submitted on 01 Oct 2025
1 points (100.0% liked)

General Discussion

0 readers
2 users here now

A place to talk about whatever you want

founded 1 year ago