Swift Performance was the first WordPress plugin, which provided an option to load javascripts only after the first user interaction. It can extremely speeds up rendering and improve Web Vitals

You can add scripts one by one which should be loaded after first user interaction (eg live chat scripts).

What is User Interaction

Swift Performance will load and run lazyloaded scripts after mouse move, touchstart, or scroll event.

This feature is available only if Merge Scripts is enabled, and Advanced view is active.

See an example

If you would like to lazyload facebook scripts on your page, you can add connect.facebook.net