YUI.add('dp-dashboardblockrandomgifplugin', function (Y) {

    Y.namespace('DP');

    Y.DP.DashboardBlockRandomGifPlugin = Y.Base.create('dpDashboardBlockRandomGifPlugin', Y.Plugin.Base, [], {
        initializer: function () {
            this.get('host').addBlock(
                new Y.DP.DashboardBlockRandomGifView({
                    priority: 100
                })
            );
        },
    }, {
        NS: 'dpDashboardBlockRandomGifPlugin',
    });

    Y.eZ.PluginRegistry.registerPlugin(
        Y.DP.DashboardBlockRandomGifPlugin, ['dashboardBlocksView']
    );
});

YUI.add('dp-dashboardblockrandomgifplugin', function (Y) {

    Y.namespace('DP');

    Y.DP.DashboardBlockRandomGifPlugin = Y.Base.create('dpDashboardBlockRandomGifPlugin', Y.Plugin.Base, [], {
        initializer: function () {
            this.get('host').addBlock(
                new Y.DP.DashboardBlockRandomGifView({
                    priority: 2000
                })
            );
        },
    }, {
        NS: 'dpDashboardBlockRandomGifPlugin',
    });

    Y.eZ.PluginRegistry.registerPlugin(
        Y.DP.DashboardBlockRandomGifPlugin, ['dashboardBlocksView']
    );
});

Make sure the random gif dashboard block is the first one
Make sure the random gif dashboard block is the first one
