My previous Primefaces version was 6.0. I upgraded it to Primefaces 10.0 (with help from the migrate section on their website.) There are no errors in Clean&Build and Debug. Although there was no problem with the upgrade, almost 50% of the time, web pages load slowly or do not load at all.
I discovered that this problem starts after Primefaces 6.2. In primefaces 6.2 jQuery version increased to version 3.2.1. The only change I made is that I updated js files in terms of on(‘load’), by removing the .load() function. There is a slowness problem, but there are no errors in the browser console.
Then, I installed jQuery 2.2.4 by using custom handler in Primefaces 10 and this fixed the problem. So, the problem starts after jquery goes above 3.0.x. But, I can’t use 2.2.4 for two reasons. First, server-side deployment does not happen when I use custom handler for jQuery. Secondly, it provides an environment for security vulnerabilities.
What could be causing this problem above 3.0.x, and how can I solve it?