Took out the onload of the resource gapi