<pre class="lang:js decode:true">equalheight = function (container) {

    var currentTallest = 0,
        currentRowStart = 0,
        rowDivs = [],
        $el,
        topPosition = 0;
    $(container).each(function () {

        $el = $(this);
        $($el).height('auto');
        topPosition = $el.position().top;
        if (currentRowStart == topPosition) {
            rowDivs.push($el);
            currentTallest = (currentTallest &lt; $el.height()) ? ($el.height()) : (currentTallest);
        } else {
            for (currentDiv = 0; currentDiv &lt; rowDivs.length; currentDiv++) {
                rowDivs[currentDiv].height(currentTallest);
            }
            rowDivs.length = 0; // empty the array
            currentRowStart = topPosition;
            currentTallest = $el.height();
            rowDivs.push($el);
        }
        for (currentDiv = 0; currentDiv &lt; rowDivs.length; currentDiv++) {
            rowDivs[currentDiv].height(currentTallest);
        }
    });
};

$(window).load(function () {
    equalheight('.content-brick--wayfinder__item__excerpt');
});


$(window).resize(function () {
    equalheight('.content-brick--wayfinder__item__excerpt');
});
</pre>
&nbsp;