Solution:
Don't create sharepoint context number of times. Just do once, like this.
var objContext;
SP.SOD.executeFunc("sp.js", 'SP.ClientContext', function () {
objContext= new SP.ClientContext.get_current();
});
Don't create sharepoint context number of times. Just do once, like this.
var objContext;
SP.SOD.executeFunc("sp.js", 'SP.ClientContext', function () {
objContext= new SP.ClientContext.get_current();
});