var gform;gform||(document.addEventListener("gform_main_scripts_loaded",function(){gform.scriptsLoaded=!0}),document.addEventListener("gform/theme/scripts_loaded",function(){gform.themeScriptsLoaded=!0}),window.addEventListener("DOMContentLoaded",function(){gform.domLoaded=!0}),gform={domLoaded:!1,scriptsLoaded:!1,themeScriptsLoaded:!1,isFormEditor:()=>"function"==typeof InitializeEditor,callIfLoaded:function(o){return!(!gform.domLoaded||!gform.scriptsLoaded||!gform.themeScriptsLoaded&&!gform.isFormEditor()||(gform.isFormEditor()&&console.warn("The use of gform.initializeOnLoaded() is deprecated in the form editor context and will be removed in Gravity Forms 3.1."),o(),0))},initializeOnLoaded:function(o){gform.callIfLoaded(o)||(document.addEventListener("gform_main_scripts_loaded",()=>{gform.scriptsLoaded=!0,gform.callIfLoaded(o)}),document.addEventListener("gform/theme/scripts_loaded",()=>{gform.themeScriptsLoaded=!0,gform.callIfLoaded(o)}),window.addEventListener("DOMContentLoaded",()=>{gform.domLoaded=!0,gform.callIfLoaded(o)}))},hooks:{action:{},filter:{}},addAction:function(o,r,e,t){gform.addHook("action",o,r,e,t)},addFilter:function(o,r,e,t){gform.addHook("filter",o,r,e,t)},doAction:function(o){gform.doHook("action",o,arguments)},applyFilters:function(o){return gform.doHook("filter",o,arguments)},removeAction:function(o,r){gform.removeHook("action",o,r)},removeFilter:function(o,r,e){gform.removeHook("filter",o,r,e)},addHook:function(o,r,e,t,n){null==gform.hooks[o][r]&&(gform.hooks[o][r]=[]);var d=gform.hooks[o][r];null==n&&(n=r+"_"+d.length),gform.hooks[o][r].push({tag:n,callable:e,priority:t=null==t?10:t})},doHook:function(r,o,e){var t;if(e=Array.prototype.slice.call(e,1),null!=gform.hooks[r][o]&&((o=gform.hooks[r][o]).sort(function(o,r){return o.priority-r.priority}),o.forEach(function(o){"function"!=typeof(t=o.callable)&&(t=window[t]),"action"==r?t.apply(null,e):e[0]=t.apply(null,e)})),"filter"==r)return e[0]},removeHook:function(o,r,t,n){var e;null!=gform.hooks[o][r]&&(e=(e=gform.hooks[o][r]).filter(function(o,r,e){return!!(null!=n&&n!=o.tag||null!=t&&t!=o.priority)}),gform.hooks[o][r]=e)}});
var ctPublicFunctions = {"_ajax_nonce":"ef0b3285f9","_rest_nonce":"106f95a973","_ajax_url":"\/wp-admin\/admin-ajax.php","_rest_url":"https:\/\/brasherattorney.com\/wp-json\/","data__cookies_type":"alternative","data__ajax_type":"rest","bot_detector_enabled":false,"data__frontend_data_log_enabled":1,"cookiePrefix":"","wprocket_detected":false,"host_url":"brasherattorney.com","text__ee_click_to_select":"Click to select the whole data","text__ee_original_email":"The complete one is","text__ee_got_it":"Got it","text__ee_blocked":"Blocked","text__ee_cannot_connect":"Cannot connect","text__ee_cannot_decode":"Can not decode email. Unknown reason","text__ee_email_decoder":"CleanTalk email decoder","text__ee_wait_for_decoding":"The magic is on the way!","text__ee_decoding_process":"Please wait a few seconds while we decode the contact data."}
var ctPublic = {"_ajax_nonce":"ef0b3285f9","settings__forms__check_internal":"0","settings__forms__check_external":"0","settings__forms__force_protection":0,"settings__forms__search_test":"1","settings__forms__wc_add_to_cart":"0","bot_detector_enabled":false,"settings__sfw__anti_crawler":0,"blog_home":"https:\/\/brasherattorney.com\/","pixel__setting":"3","pixel__enabled":true,"pixel__url":"https:\/\/moderate15-v4.cleantalk.org\/pixel\/71ab22ccc37d43859a31da560bcd07cc.gif","data__email_check_before_post":"1","data__email_check_exist_post":0,"data__cookies_type":"alternative","data__key_is_ok":true,"data__visible_fields_required":true,"wl_brandname":"Anti-Spam by CleanTalk","wl_brandname_short":"CleanTalk","ct_checkjs_key":"276ad9ccb800a4b4575cf776176fe7de4b3e0e8a9b69015927c632c6269df5e8","emailEncoderPassKey":"6157c7dfb338ebe34af74c9fa8cbcd23","bot_detector_forms_excluded":"W10=","advancedCacheExists":true,"varnishCacheExists":true,"wc_ajax_add_to_cart":false}
var breeze_prefetch = {"local_url":"https://brasherattorney.com","ignore_remote_prefetch":"1","ignore_list":["wp-admin","wp-login.php"]}; //# sourceURL=breeze-prefetch-js-extra
https://brasherattorney.com/wp-content/plugins/breeze/assets/js/js-front-end/breeze-prefetch-links.min.js
https://brasherattorney.com/wp-content/plugins/cleantalk-spam-protect/js/apbct-public-bundle_gathering.min.js
function my_enqueued_assets() { wp_deregister_script( 'jquery' ); wp_enqueue_script( 'script-name', '//code.jquery.com/jquery-2.2.3.min.js', array(), '2.2.3' ); } add_action( 'wp_enqueue_scripts', 'my_enqueued_assets' ); <script>!function(s,a,e,v,n,t,z){if(s.saq)return;n=s.saq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!s._saq)s._saq=n; n.push=n;n.loaded=!0;n.version='1.0';n.queue=[];t=a.createElement(e);t.async=!0;t.src=v;z=a.getElementsByTagName(e)[0];z.parentNode.insertBefore(t,z)}(window,document,'script','https://tags.srv.stackadapt.com/events.js');saq('ts', 'Lt2v7GTJM0SWYteG3eMngA');
CLOSE
Brasher Law Firm
  • About
    • Clint Brasher
    • Joseph A. Muckleroy
    • Nishi Kothari
  • Bad Faith Insurance
    • Natural Disaster Claims
      • Hurricane Damage
        • Hurricane Beryl Claims
        • Hurricane Ida Claims
      • Storm Damage
        • Tropical Storm Hermine Claims
        • Derecho Storm Claims
      • Snow & Ice Storm Damage
        • Pipe Burst Claims
      • Fire Damage
      • Hail Storm Damage
      • Tornado Damage
    • Frequently Asked Questions
      • What is Bad Faith Insurance?
      • Do I Have a Bad Faith Claim?
      • How to File a Claim
      • Why Hire an Attorney ?
    • Bad Faith Insurance Litigation
    • TWIA Insurance Claims Lawyers
    • Insurance Coverage
    • Property Damage Checklist
  • Personal Injury
    • Car Accidents
      • Driver Distractions
      • Drunk Driving Accidents
      • Head-On Collisions
      • Rear-End Accidents
      • Rollover Accidents
      • T-Bone Accidents
      • Texting While Driving
      • Uninsured Motorist Claims
    • Truck Accidents
      • Accidents Caused by Parked Trucks
      • Dump Truck Accidents
      • Truck Driver Intoxication
      • Truck Driver Negligence
      • Underride Accidents
      • Weight & Speed of 18 Wheelers
    • Motorcycle Accidents
    • Insurance Claims
    • Offshore Accidents
      • Barge Injuries
      • Jones Act Seamen Injuries
      • Maritime Law
      • Offshore Drilling Injuries
    • Catastrophic Injuries
      • Broken Bones
      • Foot Injuries
      • Loss of Limb
      • Neck and Back Injuries
      • Spinal Cord Injuries
      • Traumatic Brain Injuries
    • Parking Lot Injuries
    • Slip & Fall Accidents
    • Wrongful Death
  • Testimonials
  • Blog
  • Contact
    • Office Locations
      • Beaumont, TX
      • Houston, TX
      • Frisco, TX
      • Houma, LA
      • Lake Charles, LA
      • New Orleans, LA
Link Toggle For Search
Español
(888) 989-2889
Menu

    Brasher Law Firm Partner Nishi Kothari Selected to The Lawdragon 500 X – The Next Generation Listing for 2025

    • July 23, 2025

    The guide is a collection of the top lawyers with less than 15 years in practice Brasher Law Firm, PLLC partner Nishi Kothari has earned a selection to the 2025 Lawdragon 500 X – The Next Generation, a list of the best and brightest attorneys from around the globe who have been in practice for 15 years or less. Ms. […]

    Continue Reading

    Brasher Law Firm Partner Nishi Kothari Discusses Flood Insurance and Recovery in the Aftermath of the Deadly Kerr County, Texas Floods

    • July 15, 2025

    Brasher Law Firm, PLLC partner Nishi Kothari was interviewed in the following piece for Realtor.com – “Will Insurance Cover the Damage From the Texas Floods? Victims Face Growing Questions About Recovery.” The article from reporter Dina Sartore-Bodo addresses the flash flood that happened on July 4th weekend. A heavy and sustained amount of rain caused the Guadalupe River to surge […]

    Continue Reading

    Brasher Law Firm Partner Nishi Kothari Begins Tenure as President of the South Asian Bar Association of North America

    • July 8, 2025

    Ms. Kothari to lead the organization of 33 chapters and over 12,000 members Brasher Law Firm, PLLC, is pleased to announce that firm partner Nishi Kothari has been elected president of the South Asian Bar Association of North America (SABA), an organization with 33 chapters in the United States and Canada and a membership of more than 12,000 legal professionals.   […]

    Continue Reading

    The Brasher Bulletin – June/July 2025

    • June 28, 2025

    Brasher Law Firm, PLLC When My Insurance Let Me Down, Brasher Law Lifted Me Up When Hurricane Beryl swept through Texas a year ago, I woke to a sound I will never forget. Just before dawn, I heard a deafening crash — so loud, so sudden that I thought something had exploded. My heart dropped. I raced upstairs to check […]

    Continue Reading

    Two Brasher Law Firm Partners Earn Placements on the 2025 Lawdragon 500 Leading Plaintiff Financial Lawyers List

    • June 23, 2025

    Clint Brasher and Nishi Kothari selected for excellence in two practice areas BEAUMONT, Texas – Brasher Law Firm, PLLC, firm founder Clint Brasher and firm partner Nishi Kothari have been chosen for inclusion on the Lawdragon 500 Leading Plaintiff Financial Lawyers list for 2025. Both were selected in recognition of their excellent work in two practice areas: bad faith insurance and […]

    Continue Reading

    The Brasher Bulletin – April/May 2025

    • April 17, 2025

    Brasher Law Firm, PLLC One Year After the Storms We are nearing the one-year anniversary of when a derecho struck Houston and surrounding areas. From the evening of May 16, 2024, through the next day, the storms brought winds of up to 100 mph along with four tornadoes to the Houston area. Seven people were killed. While we are accustomed […]

    Continue Reading

    Brasher Law Firm Attorneys Earn Selection to the Lawdragon 500 Leading Plaintiff Consumer Lawyers List for 2025

    • March 6, 2025

    Clint Brasher, Nishi Kothari and Joe Muckleroy chosen for fourth consecutive year BEAUMONT, Texas – Brasher Law Firm, PLLC is pleased to announce that firm founder Clint Brasher and partners Nishi Kothari and Joe Muckleroy have all earned a spot on the Lawdragon 500 Leading Plaintiff Consumer Lawyers list for 2025. This is the fourth consecutive year the three attorneys […]

    Continue Reading

    Nishi Kothari Shares Tips for Homeowners Regarding Insurance Inspections and Damage Claims on Fox 26 Houston

    • March 5, 2025

    Brasher Law Firm has some of the most knowledgeable homeowners’ insurance lawyers in the country and we always try to do our part to share our expertise with our clients and the public at large. Our very own bad faith insurance lawyer Nishi Kothari sat down with Rashi Vats at Fox 26 Houston to discuss weather-related coverage. She shared the five most common mistakes […]

    Continue Reading

    The Brasher Bulletin – February/March 2025

    • March 3, 2025

    Brasher Law Firm, PLLC The Case That Didn’t Wait for the Holidays New Year’s Eve is usually reserved for celebrations, champagne toasts, and quality time with family. For me, it turned into something entirely different — a race against the clock to prepare for trial. My family and I had just arrived in Palm Springs, ready to unwind and welcome […]

    Continue Reading

    The Brasher Bulletin – Dec 2024/Jan 2025

    • January 3, 2025

    Brasher Law Firm, PLLC Houston, We Have a Liftoff! As a lifelong Houstonian, I’m thrilled to share that Brasher Law is opening a new office in Greenway Plaza! This expansion marks an exciting chapter in our commitment to serving the Houston community, and by the time you read this, we will have already opened our doors to our 2,000-square-foot office. […]

    Continue Reading
  • Recent Posts
    • The Brasher Bulletin – April 2026
    • Brasher Law Firm Places Three on Lawdragon Plaintiff Financial Lawyers Guide
    • The Brasher Bulletin – February/March 2026
    • Brasher Law Firm Attorneys Earn Repeat Placement on Lawdragon 500 Leading Plaintiff Consumer Lawyers List
    • Clint Brasher Earns Repeat Placement on Lawdragon 500 Leading Lawyers
  • Categories
    • Articles
    • Bad Faith Insurance
    • Cancellation of a Policy
    • Car Accidents
    • Failure to Investigate a Claim
    • Hail Storm Damage
    • Hurricane Damage
    • Injury Claims
    • Insurance Claims
    • Motor Vehicle Accidents
    • News
    • Plant and Industrial Accidents
    • Press Releases
    • Property Damage
    • The Brasher Bulletin
    • Tornado Damage Claim

Posts pagination

← Newer Posts 1 2 3 4 5 6 7 Older Posts →

Get Help Today

  • This field is for validation purposes and should be left unchanged.

Do I Have a Bad Faith Claim?

Insight From Texas Bad Faith Insurance Lawyers Texas law mandates that all insurance companies provide their insured with a certain fiduciary obligation. This means that insurance companies are required to…
Read Now

How Much is My Personal Injury Claim Worth?

While there is no guaranteed calculator to assign an exact monetary value to your personal injury claim, you can analyze the circumstances of your case to get a general idea…
Read Now
  • Facebook Icon
  • Twitter Icon
  • LinkedIn Icon

Beaumont Office
Main Office

1122 Orleans St.
Beaumont, TX 77701
(888) 989-2889

New Orleans Office
1555 Poydras Street, Suite 1600
New Orleans, LA 70112
(504) 527-8291

Dallas Office
6160 Warren Parkway, Suite 100
Frisco, TX 75034
(972) 928-0517

Houston Office
3555 Timmons Lane, Suite 1130
Houston, TX 77027
(713) 714-5014

Lake Charles Office
2201 Oak Park Blvd,
Lake Charles, LA 70601
(337)-284-9998

Houma Office
306 Grinage St.
Houma, LA 70360
(985) 261-2880

© 2026

  • Home
  • Disclaimer
  • Privacy Policy
  • Sitemap
gform.initializeOnLoaded( function() {gformInitSpinner( 3, 'https://brasherattorney.com/wp-content/plugins/gravityforms/images/spinner.svg', true );jQuery('#gform_ajax_frame_3').on('load',function(){var contents = jQuery(this).contents().find('*').html();var is_postback = contents.indexOf('GF_AJAX_POSTBACK') >= 0;if(!is_postback){return;}var form_content = jQuery(this).contents().find('#gform_wrapper_3');var is_confirmation = jQuery(this).contents().find('#gform_confirmation_wrapper_3').length > 0;var is_redirect = contents.indexOf('gformRedirect(){') >= 0;var is_form = form_content.length > 0 && ! is_redirect && ! is_confirmation;var mt = parseInt(jQuery('html').css('margin-top'), 10) + parseInt(jQuery('body').css('margin-top'), 10) + 100;if(is_form){jQuery('#gform_wrapper_3').html(form_content.html());if(form_content.hasClass('gform_validation_error')){jQuery('#gform_wrapper_3').addClass('gform_validation_error');} else {jQuery('#gform_wrapper_3').removeClass('gform_validation_error');}setTimeout( function() { /* delay the scroll by 50 milliseconds to fix a bug in chrome */ }, 50 );if(window['gformInitDatepicker']) {gformInitDatepicker();}if(window['gformInitPriceFields']) {gformInitPriceFields();}var current_page = jQuery('#gform_source_page_number_3').val();gformInitSpinner( 3, 'https://brasherattorney.com/wp-content/plugins/gravityforms/images/spinner.svg', true );jQuery(document).trigger('gform_page_loaded', [3, current_page]);window['gf_submitting_3'] = false;}else if(!is_redirect){var confirmation_content = jQuery(this).contents().find('.GF_AJAX_POSTBACK').html();if(!confirmation_content){confirmation_content = contents;}jQuery('#gform_wrapper_3').replaceWith(confirmation_content);jQuery(document).trigger('gform_confirmation_loaded', [3]);window['gf_submitting_3'] = false;wp.a11y.speak(jQuery('#gform_confirmation_message_3').text());}else{jQuery('#gform_3').append(contents);if(window['gformRedirect']) {gformRedirect();}}jQuery(document).trigger("gform_pre_post_render", [{ formId: "3", currentPage: "current_page", abort: function() { this.preventDefault(); } }]); if (event && event.defaultPrevented) { return; } const gformWrapperDiv = document.getElementById( "gform_wrapper_3" ); if ( gformWrapperDiv ) { const visibilitySpan = document.createElement( "span" ); visibilitySpan.id = "gform_visibility_test_3"; gformWrapperDiv.insertAdjacentElement( "afterend", visibilitySpan ); } const visibilityTestDiv = document.getElementById( "gform_visibility_test_3" ); let postRenderFired = false; function triggerPostRender() { if ( postRenderFired ) { return; } postRenderFired = true; gform.core.triggerPostRenderEvents( 3, current_page ); if ( visibilityTestDiv ) { visibilityTestDiv.parentNode.removeChild( visibilityTestDiv ); } } function debounce( func, wait, immediate ) { var timeout; return function() { var context = this, args = arguments; var later = function() { timeout = null; if ( !immediate ) func.apply( context, args ); }; var callNow = immediate && !timeout; clearTimeout( timeout ); timeout = setTimeout( later, wait ); if ( callNow ) func.apply( context, args ); }; } const debouncedTriggerPostRender = debounce( function() { triggerPostRender(); }, 200 ); if ( visibilityTestDiv && visibilityTestDiv.offsetParent === null ) { const observer = new MutationObserver( ( mutations ) => { mutations.forEach( ( mutation ) => { if ( mutation.type === 'attributes' && visibilityTestDiv.offsetParent !== null ) { debouncedTriggerPostRender(); observer.disconnect(); } }); }); observer.observe( document.body, { attributes: true, childList: false, subtree: true, attributeFilter: [ 'style', 'class' ], }); } else { triggerPostRender(); } } );} );
document.addEventListener('DOMContentLoaded', function () { setTimeout(function(){ if( document.querySelectorAll('[name^=ct_checkjs]').length > 0 ) { if (typeof apbct_public_sendREST === 'function' && typeof apbct_js_keys__set_input_value === 'function') { apbct_public_sendREST( 'js_keys__get', { callback: apbct_js_keys__set_input_value }) } } },0) })
https://brasherattorney.com/wp-content/plugins/responsive-accordion-and-collapse/js/accordion-custom.js
https://brasherattorney.com/wp-content/plugins/responsive-accordion-and-collapse/js/accordion.js
https://brasherattorney.com/wp-content/themes/Brasher/public/js/foundation.js
https://brasherattorney.com/wp-content/themes/Brasher/public/js/app.js
https://brasherattorney.com/wp-content/plugins/breeze/assets/js/js-front-end/breeze-lazy-load.min.js
document.addEventListener("DOMContentLoaded", function () { if ( "function" !== typeof window.LazyLoad && "function" !== typeof LazyLoad ) { return; }var breezeLazyLoad = window.LazyLoad || LazyLoad;window.lazyLoadInstance = new breezeLazyLoad({ elements_selector: ".br-lazy", data_src: "breeze", data_srcset: "brsrcset", data_sizes: "brsizes", class_loaded: "br-loaded", threshold: 300, }); }); //# sourceURL=breeze-lazy-js-after
https://brasherattorney.com/wp-includes/js/dist/dom-ready.min.js
https://brasherattorney.com/wp-includes/js/dist/hooks.min.js
https://brasherattorney.com/wp-includes/js/dist/i18n.min.js
wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } ); //# sourceURL=wp-i18n-js-after
https://brasherattorney.com/wp-includes/js/dist/a11y.min.js
https://brasherattorney.com/wp-content/plugins/gravityforms/js/jquery.json.min.js
var gform_i18n = {"datepicker":{"days":{"monday":"Mo","tuesday":"Tu","wednesday":"We","thursday":"Th","friday":"Fr","saturday":"Sa","sunday":"Su"},"months":{"january":"January","february":"February","march":"March","april":"April","may":"May","june":"June","july":"July","august":"August","september":"September","october":"October","november":"November","december":"December"},"firstDay":1,"iconText":"Select date"}}; var gf_legacy_multi = []; var gform_gravityforms = {"strings":{"invalid_file_extension":"This type of file is not allowed. Must be one of the following:","delete_file":"Delete this file","in_progress":"in progress","file_exceeds_limit":"File exceeds size limit","illegal_extension":"This type of file is not allowed.","max_reached":"Maximum number of files reached","unknown_error":"There was a problem while saving the file on the server","currently_uploading":"Please wait for the uploading to complete","cancel":"Cancel","cancel_upload":"Cancel this upload","cancelled":"Cancelled","error":"Error","message":"Message"},"vars":{"images_url":"https://brasherattorney.com/wp-content/plugins/gravityforms/images"}}; var gf_global = {"gf_currency_config":{"name":"U.S. Dollar","symbol_left":"$","symbol_right":"","symbol_padding":"","thousand_separator":",","decimal_separator":".","decimals":2,"code":"USD"},"base_url":"https://brasherattorney.com/wp-content/plugins/gravityforms","number_formats":[],"spinnerUrl":"https://brasherattorney.com/wp-content/plugins/gravityforms/images/spinner.svg","version_hash":"698b30d1eac6282ce5004dc66f76ac14","strings":{"newRowAdded":"New row added.","rowRemoved":"Row removed","formSaved":"The form has been saved. The content contains the link to return and complete the form."}}; //# sourceURL=gform_gravityforms-js-extra
https://brasherattorney.com/wp-content/plugins/gravityforms/js/gravityforms.min.js
https://brasherattorney.com/wp-content/plugins/gravityforms/js/jquery.maskedinput.min.js
https://brasherattorney.com/wp-content/plugins/gravityforms/assets/js/dist/utils.min.js
https://brasherattorney.com/wp-content/plugins/gravityforms/assets/js/dist/vendor-theme.min.js
var gform_theme_config = {"common":{"form":{"honeypot":{"version_hash":"698b30d1eac6282ce5004dc66f76ac14"},"ajax":{"ajaxurl":"https://brasherattorney.com/wp-admin/admin-ajax.php","ajax_submission_nonce":"dd76365b28","i18n":{"step_announcement":"Step %1$s of %2$s, %3$s","unknown_error":"There was an unknown error processing your request. Please try again.","error_403":"The request was blocked (403 error) for unknown security reasons. Remove any code-like text (scripts or DB queries) and try again."}}}},"hmr_dev":"","public_path":"https://brasherattorney.com/wp-content/plugins/gravityforms/assets/js/dist/","config_nonce":"70dd0c5f5e"}; //# sourceURL=gform_gravityforms_theme-js-extra
https://brasherattorney.com/wp-content/plugins/gravityforms/assets/js/dist/scripts-theme.min.js
gform.initializeOnLoaded( function() { jQuery(document).on('gform_post_render', function(event, formId, currentPage){if(formId == 3) {jQuery('#input_3_2').mask('(999) 999-9999').bind('keypress', function(e){if(e.which == 13){jQuery(this).blur();} } );} } );jQuery(document).on('gform_post_conditional_logic', function(event, formId, fields, isInit){} ) } );
gform.initializeOnLoaded( function() {jQuery(document).trigger("gform_pre_post_render", [{ formId: "3", currentPage: "1", abort: function() { this.preventDefault(); } }]); if (event && event.defaultPrevented) { return; } const gformWrapperDiv = document.getElementById( "gform_wrapper_3" ); if ( gformWrapperDiv ) { const visibilitySpan = document.createElement( "span" ); visibilitySpan.id = "gform_visibility_test_3"; gformWrapperDiv.insertAdjacentElement( "afterend", visibilitySpan ); } const visibilityTestDiv = document.getElementById( "gform_visibility_test_3" ); let postRenderFired = false; function triggerPostRender() { if ( postRenderFired ) { return; } postRenderFired = true; gform.core.triggerPostRenderEvents( 3, 1 ); if ( visibilityTestDiv ) { visibilityTestDiv.parentNode.removeChild( visibilityTestDiv ); } } function debounce( func, wait, immediate ) { var timeout; return function() { var context = this, args = arguments; var later = function() { timeout = null; if ( !immediate ) func.apply( context, args ); }; var callNow = immediate && !timeout; clearTimeout( timeout ); timeout = setTimeout( later, wait ); if ( callNow ) func.apply( context, args ); }; } const debouncedTriggerPostRender = debounce( function() { triggerPostRender(); }, 200 ); if ( visibilityTestDiv && visibilityTestDiv.offsetParent === null ) { const observer = new MutationObserver( ( mutations ) => { mutations.forEach( ( mutation ) => { if ( mutation.type === 'attributes' && visibilityTestDiv.offsetParent !== null ) { debouncedTriggerPostRender(); observer.disconnect(); } }); }); observer.observe( document.body, { attributes: true, childList: false, subtree: true, attributeFilter: [ 'style', 'class' ], }); } else { triggerPostRender(); } } );