Hi Frnds.
Is performance hit or bad coding for calling javascript in OnPreRender / Page_Init in asp.net application.
Thanks in Advance.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vincent Maverick DuranoPosted May 19, 2015, 8:18 AM
Page_Load event is typically used to register JavaScript from code. This is to ensure that all controls are loaded
If you are referencing static javascript files then you must call at the very bottom of the page after the
element to enhance page performance. But typically you can also reference js files at the section of your HTML page.