How to load a Javascript file overall the site?

Hi.

I think i’m doing something wrong, but i did’nt see waht ane i’m going crazy.
I try to load a custom JS file on all my magento page.

So, according to the doc, i put my js file in “web/js” of my theme, then i create a requirejs-config.js at the root of my theme.

My config file is correctly merge with all the the requirejs-config file.

But i don’t know why : the js file specified did’nt load (no 404, just not here…)

here is my file

var config = {
    "map": {
        "*": {
            
            "plugins": "js/plugins",
            "themeapp": "js/custom"
        }
    }
};

and an extract of complete file generated

...
require.config(config);
})();
(function() {
/**
 * Copyright © 2016 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */

var config = {
    map: {
        '*': {
            wishlist:       'Magento_Wishlist/wishlist',
            addToWishlist:  'Magento_Wishlist/js/add-to-wishlist',
            wishlistSearch: 'Magento_Wishlist/js/search'
        }
    }
};
require.config(config);
})();
(function() {
var config = {
    "map": {
        "*": {
            
            "plugins": "js/plugins",
            "themeapp": "js/custom"
        }
    }
};
require.config(config);
})();

})(require);

Thanks for you help.