Last post Jul 04, 2017 07:12 AM by Eric Du
Jul 03, 2017 06:40 PM|asp.ambur|LINK
I have my aspx using master page
in master page i have written this below
background="images/bg.jpg" onload="load();" onkeypress="return disableCtrlKeyCombination(event);" >
Will this cause to load my page slow if no its okay
If yes then what is the best other method to call this and where?
Jul 03, 2017 06:56 PM|PatriceSc|LINK
I don't expect this to be a problem unless you are doing a bunch of Ajax requests when your page loads and/or your page is really complex.
Jul 04, 2017 07:12 AM|Eric Du|LINK
According to your code and code, I suppose this is only add a value to the element property, this should not consume more time.
So my suggestion is check the execution time of this function or other function, this will better help you found out what cause your page load slow.
Here are two methods to check the function execute time, please check:
How to measure time taken by a function to execute:
Calculate the execution time of a method [duplicate]: