Added callback for dynamic resource load