<script type="text/javascript">
    (function() {
      var delay;

      delay = function(ms, func) {
        return setTimeout(func, ms);
    };

    var notification = new NotificationFx({
        message : '<div>{{ body|raw|trans({}, translationDomain|default('messages')) }}</div>',
        layout  : '{{ layout|default('growl') }}',
        effect  : '{{ effect|default('jelly') }}',
        ttl     : {{ ttl|default(10000) }},
        type    : '{{ type|default('success') }}'
    });

    // show the notification
    {% if timeout is defined and timeout != null %}
        delay({{ timeout }} , function() {
    {% endif %}
            return notification.show();
    {% if timeout is defined and timeout != null %}
        });
    {% endif %}

    }).call(this);
</script>

<script type="text/javascript">
    (function() {
        var notification = new NotificationFx({
            message : '<div>{{ body|raw|trans({}, translationDomain|default('messages')) }}</div>',
            layout  : '{{ layout|default('growl') }}',
            effect  : '{{ effect|default('jelly') }}',
            ttl     : {{ timeout|default(10000) }},
            type    : '{{ type|default('success') }}'
        });

        // show the notification
        return notification.show();

        }).call(this);
</script>

Remove delay function from codrops-notification template
Remove delay function from codrops-notification template