neurostuff / neurostore

The NeuroStore/Neurosynth application
https://compose.neurosynth.org
9 stars 6 forks source link

appzi issues #830

Closed nicoalee closed 1 month ago

nicoalee commented 1 month ago

We're still seeing weird render issues despite https://github.com/neurostuff/neurostore/issues/752 . This is getting more important as we are receiving more appzi feedback.

nicoalee commented 1 month ago

Maybe I need to separate the appzi src script tag and the settings script in separate script tags as per the docs: It may be retrieving the request before applying the changes?

<html>
  <head>
    <script>
      window.appziSettings = {
        portal: 'XXXX',
        data: {
          /// ...
        },
      };
    </script>
    <script async src="https://w.appzi.io/w.js"></script>
  </head>
  <body>
    <h1>My Fantastic site</h1>
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec
    quis nulla mauris. Proin varius orci iaculis sapien congue, vitae
    imperdiet elit convallis.
  </body>
</html>