

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How exactly does <script defer=“defer”> work?
The defer attribute is used to specify that the script execution occurs when the page loads. It is used only for external scripts and is a boolean attribute.
Example
The following code shows how to use the defer attribute:
<!DOCTYPE html> <html> <body> <script src="defer_test.js" defer></script> <p>The external file added will load later, since we're using defer</p> </body> </html>
- Related Questions & Answers
- How does Python's Matplotlib.pyplot.quiver exactly work?
- How does jQuery.scrollTop() work?
- How does jQuery.scrollLeft() work?
- How does backpropagation work?
- How does classification work?
- How does RSA work?
- How does JavaScript .prototype work?
- How does System Boot work?
- How does MySQL CASE work?
- How does placebo effect work?
- How does Selenium RC work?
- How does PowerShell Remoting work?
- How does Static Electricity Work?
- How does Incognito Mode work?
- How does Data aggregation work?
Advertisements