invoke doBeforeLoader after setting `this.context`