Trigger script and style registration with the correct hook