I need to add the onload event in jquery script tag as advagg does. I have done a bit of research, and I found that they are actually invoking hook_element_info_alter()
and thereby add their hook_advagg_modify_js_pre_render()
implementation into it. Then, they alter the child elements.
When I do the same in a hook_element_info_alter()
implementation, type['script']
is not there.
Am I missing something?