• Resolved jdavidstark

    (@jdavidstark)


    This query is a follow up to this discussion.

    There, I was given the advice to “try … switching the snippet that is currently first with whatever is creating that redirection.” But currently, there is only one script specified in the header for that page, so far as I can tell.

    Would you have any other advice for getting rid of the initial page flash?

    Thank you so much for your help!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author 99robots

    (@99robots)

    Hi @jdavidstark – The only other things to try are optimizing the images to avoid lengthy load times, caching the files that are loading as part of that service which causes the triggered popup (GrowthTools). Maybe there’s a setting that allows it to occur quicker instead of waiting X seconds. It’s actually not due to our plugin but rather the trigger element which either waits for the initial page to load BEFORE overlaying the popup.

    We do not believe that placing the snippet further up in the <head> will make any noticeable difference regarding the flash. It’s definitely due to the configuration or circumstances around that service.

    Also still would heavily compressing the background image. It is 5013 x 4634 and 5.1 MB. That adds to the slowness.

    Plugin Author 99robots

    (@99robots)

    Marking this as resolved as issue is unrelated to HFCM. Thank you.

    Thread Starter jdavidstark

    (@jdavidstark)

    Sorry it’s taken me some time to run a proper test. But I’ve been able to confirm that moving the script to the first position under <head> does fix the flashing issue.

    So, if placing a script first in the page header could be an option in HFCM, that would be most helpful.

    Thank you so much!

    Plugin Author 99robots

    (@99robots)

    @jdavidstark – thanks for confirming. Much appreciated.

    To set a specific snippet to be first, for now the easy and quick workaround is just to change the Name and Snippet Code of whatever is currently first on your list and replace it with the one you want to be load first. That’ll work. Of course, then don’t forget to re-add the one your replaced.

    I’ll close this ticket.

    Thread Starter jdavidstark

    (@jdavidstark)

    Thanks for the tip. But I have HFCM only loading one script per page at most, so it seems that there’s nothing to rename.

    It looks like the issue may be that the the HFCM snippet currently comes inside the <head> tag after instructions to load the theme’s CSS file etc. See, e.g., the reference to “growthtools” near the end of line 17 of the sample page above (view-source:https://www.jdavidstark.com/subscribe/welcome-post-logos-partner-pack-download/), which is what’s added via HFCM and appears after various instructions to start loading material like this were a “standard” page.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Redirect Script in Head Not Processing First’ is closed to new replies.