Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Wufoo async snippet: optimized version
<div id="wufoo-z7w3m7">
Fill out my <a href="">online form</a>.
<script type="text/javascript">
var z7w3m7;
!function(d, t) {
var s = d.createElement(t)
, options = {
, scr;
s.src = d.location.protocol + '//';
s.onload = s.onreadystatechange = function() {
if (/^c|loade/.test(this.readyState + '')) {
try { z7w3m7 = new WufooForm();z7w3m7.initialize(options);z7w3m7.display(); } catch (e) {}
scr = d.getElementsByTagName(t)[0]; scr.parentNode.insertBefore(s, scr);
}(document, 'script');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.