defaultBeforeResourceLoad