Skip to Content


If the Youtube Iframe API encounters an error before it is ready.

JavaScript January 10, 2018


This function runs automatically, so it is not called manually. Is this incorrect?

Additional Notes

This function logs Youtube Iframe API errors in Google Analytics.

Source File

Located in /assets/js/nebula.js on line 4789.

function nebulaYoutubeError(e){
    var thisVideo = nebula.videos[nebula.getYoutubeID(];
    thisVideo.title = nebula.getYoutubeTitle(;

    ga('send', 'exception', {'exDescription': '(JS) Youtube API error for ' + thisVideo.title + ': ' +, 'exFatal': false});
    nebula.nv('event', 'Youtube API Error');


To override or disable this JavaScript function, simply redeclare it with the exact same function name.

function nebulaYoutubeError(){
    //Write your own code here, leave it blank, or return false.