1. PROMO Subscribe our All Access Pass @ 75% OFF & access all our 16+ premium Divi extensions: Divi Block Pro, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

How Do I Change "unload" to "visibilitychange" ?

Discussion in 'Free Divi Community Forum' started by Michael Starley, Jun 23, 2021.

  1. Michael Starley

    Michael Starley New Member

    I am hopping in way over my pay grade here.
    I know that I should be posting this on the paid support forum.
    Just hoping that someone can guide me on the safest way to make the code changes mentioned in the title.

    After extensive testing and site improvements, I have been able to speed up site load times dramatically.
    I am seeking to fine tune my loading environment to help speed up the mobile side of things.
    Light house is flagging my site for using the "unload".
    Best Practices Score of 87.
    The recommendation (per Lighthouse) is to use the "visibilitychange" instead of "unload".
    If anyone reading this has had success with this I would seriously appreciate a little guidance.
    Wiling to do the work, I just do not know where to paste the code, or even if that is all that I need to do.

    https://www.personaldronerepair.com
    Thank You !! :)
     
    1. PRO MEMBER PERKS Divi Block Pro - 30+ premade custom header designs for you to choose from:View Demo
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    That is part of Divi. But based on the changelog of Divi, they already fixed it on v4.9.5. Thus, you may try to update Divi to the latest version & see if it works.