• Resolved retrovertigo

    (@retrovertigo)


    Hey again Gabe,

    I just updated from Gravity Form 2.5.6.3 to version 2.5.7.1 and since then the gform object gets initialised too late for logged in users.

    For either GF version the inline script

    
    <script type="text/javascript">if(!gform){document.addEventListener("gform_main_scripts_loaded",function(){gform.scriptsLoaded=!0}) ...
    

    is the first in the head for logged out users (line 4). For logged in users it is on line 718, in the body, just above where it is required the first time, for the older GF version 2.5.6.3. When I apply the newer version it suddenly sits around line 918, well below the inline script

    
    <script type='text/javascript'>gform.initializeOnLoaded ...
    

    which than fails.

    If I switch ACU off, e.g. via “Do not load Asset CleanUp on this page (this will disable any functionality of the plugin)”, the if(!gform) script will be in the head for logged in users, too.

    I informed GF about this issue as well, linking to this ticket.

    Thanks,
    Albert

    • This topic was modified 2 years, 9 months ago by retrovertigo. Reason: add link to GF changelog
    • This topic was modified 2 years, 9 months ago by retrovertigo. Reason: fix typo
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter retrovertigo

    (@retrovertigo)

    Hey Gabe,
    From GF

    We don’t provide any support for Asset CleanUp: Page Speed Booster. You have an issue that is only arising when Asset CleanUp: Page Speed Booster is running for the page, therefore the issue must be resolved by the author of that plugin.

    Thread Starter retrovertigo

    (@retrovertigo)

    @gabelivan just checking if this is something you can/will look into. Thanks 🙂

    Thread Starter retrovertigo

    (@retrovertigo)

    Upgrading to GF 2.5.7.5 seems to resolve the issue.

    Plugin Author Gabe Livan

    (@gabelivan)

    @retrovertigo I’m glad this issue has been resolved by upgrading to the latest version of Gravity Forms. Yes, that inline code is loaded in the HEAD by Gravity Forms and it shouldn’t be altered. I’ve tried to download GF 2.5.6.3 (perhaps from an archive), but couldn’t find it on https://www.gravityforms.com/. I’m also using a license of the plugin.

    If you still have a copy of GF 2.5.7.1, can you send it privately via https://www.gabelivan.com/contact/? You can put a hidden link on your website pointing to the ZIP file.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Gravity Form initialisation too late for logged in users’ is closed to new replies.