Total Page Preview:   000000000147

Explain $(document).ready() function in English and Hindi

$(document).ready() function in English 

The $(document).ready() function is a jQuery extension that allows you to immediately run code when the document is ready. It's most commonly used to initialize a new page or to load scripts or styles into the document. However, it can also be used to load a script or style into the document at any time. 

The $(document).ready() function is useful for loading scripts or styles into the document at any time. It's not useful for loading scripts or styles into the document when the document is already loaded.

$(document).ready() function in Hindi

$(document).ready() JavaScript ka ek function hai jo jQuery library mei hota hai. Ye function use hota hai to make sure ke code execute ho tab jab DOM fully load ho jaye. Iska use hum isliye karte hain taki hum JavaScript code ko likh saken jab DOM elements load ho chuke hon. Agar hum code ko $(document).ready() ke andar likhte hain to wo tabhi execute hoga jab pura DOM load ho jayega, jisse page load hone ke pehle JavaScript code ki execution se related issues avoid ho sakte hain.
Yeh ek commonly used technique hai web development me jisme hum JavaScript code ko run karne se pehle DOM ke saare elements ko load hone ka wait karte hain.
 
 
 
 
 
 

Thank You

About Author

Brijesh Kumar

Database Developer

I have more then 6 years Experience in Microsoft Technologies - SQL Server Database, ETL Azure Cloud - Azure SQL Database, CosmosDB, Azure Data Factory, PowerBI, Web Job, Azure Function, Azure Storage, Web Apps, Powershall and Database Migration On-Premise to Azure Cloud.
LinkedIn : https://www.linkedin.com



Comments