If you want to delay loading of JS, I just learnt of a service at JAMStack conference.
It is a something like slowpag.es - can’t remember the last part. You give it a script and a delay in ms and your browser will wait the duration before downloading.