Thank you for this great integration module which works really well.

There is a little flouc problem and I think it could be reduced by explicitely putting the module very early in the load order?

So shouldn't "#weight" be set to a negative number here:

/**
 * Implements hook_library().
 */
function queryloader_library() {
  // Register the Query Loader library.
  $libraries['queryloader'] = array(
    'title' => 'QueryLoader2',
    'website' => 'https://github.com/Gaya/QueryLoader2',
    'version' => '2',
    'js' => array(
      libraries_get_path('queryloader2') . '/queryloader2.min.js' => array(
        'type' => 'file',
        'scope' => 'header',
        'group' => JS_LIBRARY,
      ),
      drupal_get_path('module', 'queryloader') . '/queryloader_drupal.js' => array(
        'type' => 'file',
        'scope' => 'header',
        'group' => JS_DEFAULT,
      ),
      array(
        'type' => 'setting',
        'data' => array(
          'queryloader' => variable_get('queryloader_options'),
        ),
      ),
    ),
  );

  return $libraries;
}

What do you think?
Any other suggestions to improve the load order?

Comments

Anybody created an issue.