Add Library to Footer
Instead of running the libraries_load() function:

$library = libraries_load('easyzoom');


I just used the libraries_get_path() function to get the path and attached to the element and added scope of footer.

$easyzoom_library_path = libraries_get_path('easyzoom');

$element['#attached']['js'] = array(
  $easyzoom_library_path . '/dist/easyzoom.js' =&gt; array('scope' =&gt; 'footer'),
);