breaststroke
Programmer
Hello,
I am using several javascript functions on the pages of my website, in particular within two scripts. One of them is triggered by an event and has two fucntions within and the other has just one function.
I have realised that the pages take now quite a long time to get loaded. I know it is mainly due to these functions, but I don't know how to fix it.
For instance, I have tried adding the scripts at the botton of the file, or adding "defer" or "async" into the scripts, just before src="...", but nothing works.
I am even planning to remove one of these scripts, but I wouldn't like to do so since it is pretty important for the website.
I wonder whether there is a solution for this.
I would appreciate any help.
Thank you very much,
Regards
enjoy practicing languages at:
I am using several javascript functions on the pages of my website, in particular within two scripts. One of them is triggered by an event and has two fucntions within and the other has just one function.
I have realised that the pages take now quite a long time to get loaded. I know it is mainly due to these functions, but I don't know how to fix it.
For instance, I have tried adding the scripts at the botton of the file, or adding "defer" or "async" into the scripts, just before src="...", but nothing works.
I am even planning to remove one of these scripts, but I wouldn't like to do so since it is pretty important for the website.
I wonder whether there is a solution for this.
I would appreciate any help.
Thank you very much,
Regards
enjoy practicing languages at: