Load libraries in page-header region instead of page-footer so it is always available for libraries loaded in later regions.
page-header
page-footer