Archived topic
Passive Listener Warning
6 replies · Started by Michael on June 11, 2020
Hello guys,
I'm going through the Web Dev tests and this is being flagged:
https://www.dropbox.com/s/kizdi1hdwqh0ql3/gp1.jpg?dl=0
Is the https://reclaimdesign.org/wp-includes/js/comment-reply.min.js?ver=5.4.2 part of GP? Or WP? And is there a way I can edit it to include their recommendation of:
document.addEventListener('touchstart', onTouchStart, {passive: true});
Thanks for your help.
Michael.
Its a known 'issue' in WordPress. You can read more here:
https://generatepress.com/forums/topic/gp-2-3-alpha-3-consider-using-passive-listeners/
Ah OK, I can check that one off the list - thank you very much David!
I am also running the F12 plugin profiler to see if I can somehow eek out some improvements, and it is showing the theme as having the longest aggregated exec time:
https://www.dropbox.com/s/bl998j06u8s28zl/gp-f12-results.jpg?dl=0
I have turned off the options in gppremium that I'm not using:
https://www.dropbox.com/s/z633gdecgo5ljiq/gp-premium-options.jpg?dl=0
Is anything I can do from my end to improve this?
Thanks very much for your advice!
Are you running many custom functions in your child theme?
I'm running around 20 code snippets or so. They are mostly only a few lines each
Another question regarding changing the text on the "Read More" buttons for the blog please :)
I've made the change inside customizer:
https://www.dropbox.com/s/hikiqkox9mlzii6/customizer.jpg?dl=0
But for some reason, after clearing caches, it still shows as "Read more"
https://www.dropbox.com/s/ci4w3adzyz6p5k8/read-more.jpg?dl=0
Any chance you can open a new topic for the separate question as this one is marked as resolved already?
Thanks.