What is the best practice for loading styles and scripts?
Option 1:
HTMLHelper::stylesheet(Uri::base().'media/com_mycomponent/css/mycomponent.css');
Option 2:
$wa = Factory::getApplication()->getDocument()->getWebAssetManager();
$wa->registerAndUseStyle('mycomponentCore', 'com_mycomponent/mycomponent.css');
$wa->registerAndUseStyle('mycomponentList', 'com_mycomponent/list.css');
I've used both and they seem to work ok but what is the best bearing in mind the future into J5?