Everything works fine. I have a simple Fade-In/Fade-Out Transition, but the pictures are not loaded when the page fade in. This destroy the complete experience. Any Idea how i can solve this?
Barba.Pjax.start();
Barba.Prefetch.init();
var FadeTransition = Barba.BaseTransition.extend({
  start: function() {
    Promise
      .all([this.newContainerLoading, this.fadeOut()])
      .then(this.fadeIn.bind(this));
  },
  fadeOut: function() {
    return $(this.oldContainer).animate({ opacity: 0 }).promise();
  },
  fadeIn: function() {
    var _this = this;
    var $el = $(this.newContainer);
    $(this.oldContainer).hide();
    $el.css({
      visibility : 'visible',
      opacity : 0
    });
    $el.animate({ opacity: 1 }, 400, function() {
      _this.done();
    });
  }
});
Barba.Pjax.getTransition = function() {
  return FadeTransition;
};