MediaWiki:Common.js: Difference between revisions

remove conditional load of Adobe A/B testing code to prevent load errors and delays on the Main Page
(enhance the test for MainPage so that AB test code is only loaded in Production environment)
(remove conditional load of Adobe A/B testing code to prevent load errors and delays on the Main Page)
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */
// Only load the A/B testing code for pages with 'Main_Page' in the title in Production
if ( (/Main_Page/.test(document.location.href)) && (document.location.origin == 'https://www.familysearch.org') ) {
mw.loader.load( '/wiki/en/index.php?title=MediaWiki:ABTest.js&action=raw&ctype=text/javascript' );
}


/* Adobe Analytics added 2019-05-16 */
/* Adobe Analytics added 2019-05-16 */
53,890

edits