[SalesForce] Lightning: What is the difference between ltng:require and aura:clientLibrary

What is the difference between ltng:require and aura:clientLibrary?

What are the best practices with regard to their usage?

What are the technical concerns that should be taken into account when choosing either of them.

I see that combine on aura:clientLibrary allows to can improve performance by reducing the number of requests

Best Answer

ltng:require is used to refer javascripts and CSS only from static resource and we can decide sequence in which javascript should be loaded.

Whereas aura:clientLibrary allows external Javascript even from URL as well as CSS files.