Navigation
HomeSearch
Submit A Resource
Contact Us
About Functionn
Subscription Options
Subscribe By Email (265+)
Lists
Archives
Jun 8, 2012
Author:
Hirvesh
Posted At: 6/08/2012
Tags:
JavaScript,
MIT License,
resource loaders,
web development
crapLoader.js - Loads (Almost) Any Third-Party Script With document.write Asynchronously
crapLoader.js is a JavaScript library to load ads, widgets or any JavaScript code with document.write in it. The recommended solution is to use iframes for third-party content, but this is not always possible. Normally document.write prevents you from loading a script asynchronously, but this library hijacks document.write and delegates the content loaded from each script into the correct position.
Requirements: None
Demo: https://github.com/gregersrygg/crapLoader
License: MIT License
Features
- Load (almost) any third-party script asynchronously
- Does not block rendering of your page
- Your visitors see your content earlier
- DOMContentLoaded (a.k.a. $(doc).ready ) and window.onload triggered earlier
- Load the banners in parallel! Except in IE ;(
- Banners loads faster (at least in theory)
- Handles recursive scripts
- Inline and external javascript
- Inline and external vbscript
- Buffer document.write, flush on script load event
- Handles document.getElementById from the buffer
- Tested (manually) in IE 6-10, latest Firefox, Chrome, Safari, Opera
Disadvantages
- You never know for sure that all ads will load correctly
- Ads might circumvent by getting a clean doc.write from an iframe
- Possible to stop, but won't
- Using this script might violate the terms of your ad provider
- You can't use document.write in your own scripts, but why would you?!?
- document.getElementById will be a tad slower until all scripts loaded with crapLoader are finished loading
Requirements: None
Demo: https://github.com/gregersrygg/crapLoader
License: MIT License
Trending Posts On Functionn This Week
Other Interesting Resources:
Subscribe to:
Post Comments (Atom)
Trending Posts
Popular Posts
- 20 Fresh, High-Quality Free WordPress Themes 2012
- 50 Fresh, High-Quality Free WordPress Themes 2012 - Edition #2
- The Most Comprehensive Index Of Free Icon Fonts/Iconic Web Fonts
- Timeline - A JavaScript Library For Beautifully Crafted Timelines That Are Easy, And Intuitive To Use
- BLUR.JS - A JQUERY PLUGIN PRODUCING PSUEDO-TRANSPARENT BLURRED ELEMENTS
- Selene - A Stunning & Sleek jQuery UI Theme
- jQuery UI Bootstrap Theme - Bootstrap v2.X's Theme For jQuery UI
Recent Posts
Popular Categories
- JavaScript (535)
- JQuery (275)
- Libraries (132)
- CSS (115)
- frameworks (113)
- Tools (112)
- html (86)
- Github (79)
- html5 (71)
- Node.js (58)
- mobile (52)
- Responsive (49)
- CSS3 (47)
- page effects (45)
- Web Design (41)
- Bootstrap (35)
- twitter (31)
- image effets (22)
- MVC (18)
- generators (18)
- CoffeeScript (16)
- graphics (10)
Popular Components
- icons (42)
- Graphs (22)
- popups (19)
- notifications (17)
- web fonts (17)
- visualizations (14)
- sliders (11)
- polyfills (10)
- localstorage (8)
- social media buttons (8)
Popular Licenses
- MIT License (493)
- free (144)
- GPL (64)
- Apache License v2.0 (48)
- CC Attribution 3.0 License (46)
- GPLv2 (20)
- GPLv3 (11)
- Custom License (7)
Budgetary control is widely used in management
ReplyDeleteaccounting there are personal income tax projection software no beggars.
But, I also believe that the personal income tax projection software
development loan would keep a keen eye on the cash in The Java Lounge's expense accounts
track things such as rent, hydro, coffee suppliesbeans, milk, sugar, etc.
Something like that So you're stuck with cash instead oof
using that cash to grow personal income tax projection software your business.
Feel free to surf to my blog; Doradca Podatkowy W Bialymstoku (Www.Falkotimme.Com)