Passive Listener for scrolling

Posted in: Newspaper
Post count: 361

In which .js file in the mobile theme can I mark the listener as “passive”?

Greetings Kathrin

Post count: 35449

Hi,
If you are using the mobile theme plugin then all the js files are on this directory -> wp-content/plugins/td-composer/mobile/js
Thank you!

Post count: 361

Ok, yes I’m using the mobile theme. And which part of the code I have to mark, can you please help me a little bit?

Thank you very much!

Post count: 35449

Hi, for mobile theme the only js files are those from this file path -> wp-content/plugins/td-composer/mobile/js but those are minify and it is quite hard to edit it, but there are tools on internet and you can unminify the code and then to edit it.
Thank you!

Post count: 361

Ok, but I deactived the sticky header in the same js.file and here you didn’t tell me that I have to unminify it before doing that. Is there no way to set the listener to passive? If I would unminify it, which part of the code I should set to passive?

Will you take it into account in the next update? Because it is always reported as a failure.

Greetings Kathrin

Post count: 18283

Hello !

Please note that this requires custom coding which is not covered by the support team, and it is not recommended by our developers to edit or un-minify the code since it can lead to other problems with the theme.

Thank you !

Post count: 361

Ok, but will you solve it in one of the next updates? Because it’s marked as a serious problem since the Google Update in May 2020…

Greetings Kathrin

Post count: 18283

Hello !

I have passed this to our developers in order for them to inspect and see what can be done.

Thank you !

Post count: 361

Ok, I have found the file:

wp-content/mmr/48971584-1604329671.min.js (I have opened it) here should the listener in line 5 and line 6 set to passive: {passive: true}. Can you help me where I have to add peace of code?

Greetings Kathrin

Post count: 18283

Hello !

The one presented by you is not a path from Newspaper Theme. This may be an issue from the unminify option you have used.

Thank you !

Post count: 361

@Vlad This is part of the directory of my wordpress setup. It is not an issue of the unminify option!!! So where I can set the listener to passive?

Greetings Kathrin

Post count: 18283

Hello !

Please note that as mentioned above. This is a function that will require some custom coding knowledge to find and edit. This is not covered by the Newspaper Support team: https://forum.tagdiv.com/newspaper-theme-support/

You can contact our custom work team here if you want they can help you with more over a fee: https://tagdiv.com/web-development-services/

Thank you !

Viewing 12 posts - 1 through 12 (of 12 total)
You must be logged in to reply to this topic.