Make page reload in angular if the dom is having problem with jquery javascript ot require js anything in dom is not working. myApp.controller('mainController', ['$scope', '$rootScope', '$location', '$log', '$route', '$cookieStore', '$interval', function($scope,$rootScope,$location,$log,$route,$cookieStore,$interval){ $rootScope.hideit = false; var startTime = new Date(); var firstR = new Date($cookieStore.get('firstreload')); var diff = startTime - firstR; var finalDiffToCheck = diff/1000; if($cookieStore.get('firstreload') === undefined){ $log.info("case page has not been loaded at all"); } if(finalDiffToCheck > 4){ $log.info("case page has to be reloaded"); window.location.reload(); ...