![]() Stop Using Document Readyīack in the day of heavy server frameworks, knowing that your page was fully constructed before you tried to mutate it was a big deal. In doing so, I’d like to share 5 things in jQuery that I think you should think twice about doing. I’ve had my heart broken a few times and learned a some things along the way. Since then, I’ve spent a few years at the Bayside of jQuery. Some of the worst jQuery code ever written was written by me – I can assure you of that. With tears of joy running down my face, I opened up a document ready function and then just vomited up massive amounts of jQuery. When I learned about jQuery, I think I did what many people do. I was using vanilla JS and really struggling with understanding when elements on a page were ready and how I could access them. 4.8.4.4.When I first started using jQuery, I was so excited.4.8.4.4.5 Text that has been rendered to a graphic for typographical effect.4.8.4.4.4 A short phrase or label with an alternative graphical representation: icons, logos.4.8.4.4.3 A phrase or paragraph with an alternative graphical representation: charts, diagrams, graphs, maps, illustrations.4.8.4.4.2 A link or button containing nothing but the image.4.8.4.4 Requirements for providing text to act as an alternative for images.4.8.4.3.13 Reacting to environment changes.4.8.4.3.12 Normalizing the source densities.4.8.4.3.8 Creating a source set from attributes.4.8.4.3.6 Preparing an image for presentation.4.7.3 Attributes common to ins and del elements.4.6.6.1 The ` Ping-From` and ` Ping-To` headers.4.6.2 Links created by a and area elements.4.2.7 Interactions of styling and scripting.4.2.5.4 Specifying the document's character encoding.4.2.4.6 Providing users with a means to follow hyperlinks created using the link.4.2.4.3 Fetching and processing a resource.3.2.9 Requirements related to ARIA and to platform accessibility APIs.3.2.8.2 User agent conformance criteria.3.2.8.1 Authoring conformance criteria for bidirectional-algorithm formatting characters.3.2.8 Requirements relating to the bidirectional algorithm.3.2.7 The innerText and outerText properties.3.2.6.6 Embedding custom non-visible data with the data-* attributes.3.1.4 Reporting document loading status.3.1.2 The DocumentOrShadowRoot interface.2.7.8 StructuredDeserializeWithTransfer ( serializeWithTransferResult,.2.7.7 StructuredSerializeWithTransfer ( value, transferList.2.7.6 StructuredDeserialize ( serialized, targetRealm [ ,.2.7.5 StructuredSerializeForStorage ( value ).2.7.3 StructuredSerializeInternal ( value, forStorage [ ,.2.6.2.3 The HTMLOptionsCollection interface.2.6.2.2 The HTMLFormControlsCollection interface.2.6.2.1.1 ] ( thisArgument, argumentsList ).2.6.2.1 The HTMLAllCollection interface. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |