hi there,
I am currently working on aspnet mvc project. we are almost done with the requirements but the nightmare of mine is to improve the performance of the system.
And after tried a lot of possibilities I came to knew that the javascript calls in the code i.e document.ready(function(){} stopping the screen to render where the required scripts are downloading first then only the screen is starting to render.
This is my assumption only ... can anybody help me out of this ...
thanks in advance.
What I have tried:
$(document).ready(function () {
//$('#idTourDateDetails').datepicker({
// dateFormat: 'dd-mm-yy',
// maxDate: -3650,
// changeMonth: true,
// changeYear: true,
// yearRange: "-100:+0"
// //,
// //altField: "#idTourDateDetailsHidden",
// //altFormat: "yy-mm-dd"
//}).on('changeYear', function (e) {
// // Revalidate the date field
// alert("came");
// $('#defaultForm').bootstrapValidator('revalidateField', 'idTourDateDetails');
//});
$('#date').datepicker({
dateformat:"dd/MM/yyyy",
startDate: "01/01/1950",
endDate: new Date(),
autoclose:true
}).on('changeDate', function (e) {
// Revalidate the date field
$('#defaultForm').bootstrapValidator('validateField', 'DateOfBirth');
});