I am trying to load MDL Switch through external file but it’s not working. Here is my main page code : index.php Here is file new_test.php Here are the result after i press load button: possible js is not working properly but i can’t find a way to fix this. please help Answer You Will need to call componentHandler.upgradeAllRegistered() for