add the same render lifecycle events that exists for pages to stylesheets and scripts