refactored document post-loading code to its own method
refactored document post-loading code to its own method

sjaakvandenberg/cleaver,VukDukic/cleaver,sjaakvandenberg/cleaver,nuno-silva18/cleaver,jdan/cleaver,codeheroics/cleaver,noamtamim/cleaver,noamtamim/cleaver,hugo-agbonon/cleaver,teazean/cleaver,hugo-agbonon/cleaver,codeheroics/cleaver,gnclmorais/cleaver,adriens/cleaver,jdan/cleaver,adriens/cleaver,scalp42/cleaver,VukDukic/cleaver,teazean/cleaver,dapperAuteur/cleaver,moreati/cleaver,moreati/cleaver,scalp42/cleaver,nuno-silva18/cleaver,gnclmorais/cleaver,dapperAuteur/cleaver