---
title: "[JQuery]Quicker Than window.onload"
author: "yepp"
date: "2006-11-21T09:00:59Z"
tags: []
slug: "jquery-quicker-than-window-onload"
draft: false
lastmod: "2006-11-21T09:00:59Z"
id: 35292
url: "https://yepp.iteye.com/blog/35292"
---

js 代码

1. $(document).ready(function(){
2. // Your code here...
3. });

Aboves launches your javascript as soon as the Document Object Model is ready… which happens before the page has finished loading.