{"record":{"id":"0c7cae5c57438913","repo":"Semantic-Org/Semantic-UI","slug":"ontabload-has-been-renamed-to-onload-in-2-0-pleas","errorCode":null,"errorMessage":"onTabLoad has been renamed to onLoad in 2.0. Please adjust your code","messagePattern":"onTabLoad has been renamed to onLoad in 2\\.0\\. Please adjust your code","errorType":"console","errorClass":null,"httpStatus":null,"severity":"info","filePath":"src/definitions/modules/tab.js","lineNumber":930,"sourceCode":"\n  onFirstLoad : function(tabPath, parameterArray, historyEvent) {}, // called first time loaded\n  onLoad      : function(tabPath, parameterArray, historyEvent) {}, // called on every load\n  onVisible   : function(tabPath, parameterArray, historyEvent) {}, // called every time tab visible\n  onRequest   : function(tabPath, parameterArray, historyEvent) {}, // called ever time a tab beings loading remote content\n\n  templates : {\n    determineTitle: function(tabArray) {} // returns page title for path\n  },\n\n  error: {\n    api        : 'You attempted to load content without API module',\n    method     : 'The method you called is not defined',\n    missingTab : 'Activated tab cannot be found. Tabs are case-sensitive.',\n    noContent  : 'The tab you specified is missing a content url.',\n    path       : 'History enabled, but no path was specified',\n    recursion  : 'Max recursive depth reached',\n    legacyInit : 'onTabInit has been renamed to onFirstLoad in 2.0, please adjust your code.',\n    legacyLoad : 'onTabLoad has been renamed to onLoad in 2.0. Please adjust your code',\n    state      : 'History requires Asual\\'s Address library <https://github.com/asual/jquery-address>'\n  },\n\n  metadata : {\n    tab    : 'tab',\n    loaded : 'loaded',\n    promise: 'promise'\n  },\n\n  className   : {\n    loading : 'loading',\n    active  : 'active'\n  },\n\n  selector    : {\n    tabs : '.ui.tab',\n    ui   : '.ui'\n  }","sourceCodeStart":912,"sourceCodeEnd":948,"githubUrl":"https://github.com/Semantic-Org/Semantic-UI/blob/597843ab84d565cccfd8fd7719416350ae73e734/src/definitions/modules/tab.js#L912-L948","documentation":"Semantic UI Tab deprecation notice logged at tab.js:167 by fix.callbacks(): if parameters.onTabLoad is present it is renamed to parameters.onLoad, the legacy key is deleted, and this message is logged. Automatic conversion preserves behavior; the notice nudges migration to the 2.x callback name.","triggerScenarios":"Initializing tab with the 1.x callback name: $('.menu .item').tab({ onTabLoad: function(){...} }).","commonSituations":"Copy-paste from 1.x docs; legacy bundled templates that haven't been updated for 2.x.","solutions":["Rename onTabLoad to onLoad in the tab settings object.","Delete the deprecated key after migration.","Update copy-pasted examples to the new callback names."],"exampleFix":"// before\n$('.menu .item').tab({ onTabLoad: function(path, params, evt){ /*...*/ } });\n// after\n$('.menu .item').tab({ onLoad: function(path, params, evt){ /*...*/ } });","handlingStrategy":"validation","validationCode":"function migrateTabLoad(cfg) {\n  if (cfg && cfg.onTabLoad) { console.warn('Rename onTabLoad -> onLoad'); cfg.onLoad = cfg.onTabLoad; delete cfg.onTabLoad; }\n  return cfg;\n}","typeGuard":"function usesModernTabLoadName(cfg) { return !cfg || typeof cfg.onTabLoad === 'undefined'; }","tryCatchPattern":null,"preventionTips":["Search the codebase for 'onTabLoad' during Semantic UI upgrades.","Use the 2.x callback names in new code."],"tags":["semantic-ui","deprecation","migration","tab"],"backgroundTag":null,"analyzedSha":"597843ab84d565cccfd8fd7719416350ae73e734","analyzedAt":"2026-08-13T01:44:23.827Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}