You are here

function sharerich_libraries_preload in Sharerich 7.2

Same name and namespace in other branches
  1. 7.3 sharerich.module \sharerich_libraries_preload()

Use a callback function to move any JavaScript to the footer.

1 string reference to 'sharerich_libraries_preload'
sharerich_libraries_info in ./sharerich.module
Implements hook_libraries_info().

File

./sharerich.module, line 88

Code

function sharerich_libraries_preload(&$library) {
  foreach ($library['files']['js'] as $file => $options) {
    $library['files']['js'][$file]['scope'] = 'footer';
  }
}