For example, there are tow pages, 1.html has colorpicker plugin and 2.html not
1.html2.html
If paste a long text (more than 30000, for example, this file ), the 1.html will be "no response" in about 10 seconds. I use "Performance" tool in Chrome's devtools, it shows that most of the time is spent on "Layout"
If in a complex web page, the situation is more serious.
For example, there are tow pages, 1.html has colorpicker plugin and 2.html not 1.html 2.html
If paste a long text (more than 30000, for example, this file ), the 1.html will be "no response" in about 10 seconds. I use "Performance" tool in Chrome's devtools, it shows that most of the time is spent on "Layout"
If in a complex web page, the situation is more serious.
Here is Google's document
You can load my performance profile
(I did not delve into it, but maybe asynchronous initialization can solve the problem?)