• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-EmbedURL with MMM-Pages - Website reload....

Scheduled Pinned Locked Moved Solved Troubleshooting
11 Posts 3 Posters 950 Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    sdetweil @wishmaster270
    last edited by Dec 1, 2024, 4:57 PM

    @wishmaster270 you could make the content you return fixed …

    getDom(){
        if(!this.already_created){
           build content
           this.already_created=new content
        }
        return this.already_created 
    }
    

    I do this in a few modules to reduce/eliminate the flash

    nothing says you HAVE to CREATE the content on each getDom()
    just have to return something

    so minor change… no logic change

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    W 1 Reply Last reply Dec 1, 2024, 5:32 PM Reply Quote 0
    • W Offline
      wishmaster270 Module Developer @sdetweil
      last edited by Dec 1, 2024, 5:32 PM

      @sdetweil
      Hi Sam,

      you are right. But i do not want the content to be fixed as some users want the content to be recreated after the configured interval.

      I just released a new version 0.0.8 of the module which introduces a updateDomOnShow option. If the option is set to false the module uses the old html elements after a resume. Maybe this fixes the issue.

      S 1 Reply Last reply Dec 1, 2024, 5:44 PM Reply Quote 1
      • S Offline
        sdetweil @wishmaster270
        last edited by Dec 1, 2024, 5:44 PM

        @wishmaster270 thanks… I didn’t know if the iframe would reload itself on show

        @BKeyport give this a try

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        B 1 Reply Last reply Dec 1, 2024, 9:47 PM Reply Quote 0
        • B Offline
          BKeyport Module Developer @sdetweil
          last edited by Dec 1, 2024, 9:47 PM

          Tom, is it updateDomOnShow or updateDomOnResume ?

          Documentation shows the latter.

          The "E" in "Javascript" stands for "Easy"

          B 1 Reply Last reply Dec 1, 2024, 10:25 PM Reply Quote 0
          • B Offline
            BKeyport Module Developer @BKeyport
            last edited by Dec 1, 2024, 10:25 PM

            I put them both in, and that fixed it - thanks, Tom.

            The "E" in "Javascript" stands for "Easy"

            W 1 Reply Last reply Dec 2, 2024, 6:16 AM Reply Quote 1
            • S sdetweil has marked this topic as solved on Dec 1, 2024, 10:32 PM
            • W Offline
              wishmaster270 Module Developer @BKeyport
              last edited by Dec 2, 2024, 6:16 AM

              @BKeyport Sorry, to one I’m the documentation is the correct one.

              Great to hear it is working.

              1 Reply Last reply Reply Quote 0
              • 1
              • 2
              • 1 / 2
              1 / 2
              • First post
                10/11
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy