How to fix MemberScript bugs with content hiding on page load and capture visitor URL in Webflow form? Answered
Had a couple MemberScript bugs. Anyone experience this?
- Is there a script that truly lets you hide content on load / page refresh? Both skeleton and timed display memberScripts will still reveal content for a split sec before covering it.
- Currently using script #20.2 (loads immediately) when Saving and Unsaving items. This seems to work fine with Safari however, on Chrome there’s a massive delay. How would I go about fixing this bug?
Quick Screen Recording: https://www.loom.com/share/a0e909933aee4d919837f46eed907da5?sid=db6dbb05-e2f8-421e-88fe-b5952691c49b
Comments
18 comments
Julian Galluzzo
Have you also tried using the second one (loads after member object)?
I find some projects have issues with one and then work with the other, not sure why
Yeah I started with that one and switched because the delay
the "Ninja Online" project is located in the 1st folder in the workspace '2023 Creator Capitol'
Hey Marcus Francis!
I seem to have fixed it, it is working beautifully now. Please check out this loom for details
https://www.loom.com/share/aa272587ed1d40e8b657bcb217247d99
Thanks Julian Galluzzo! For the optimized code you mentioned, is that the one on the favorites page settings or the one I had in the global component embed?
Secondly, if I will allow people to save things on multiple pages is it best practice to keep it as a global component embed and get rid of the page settings one?
It is! And its in the component embed
🙏
Julian Galluzzo I am having the same issue. Can you please tell me what have you done on his website to speed it up? I can add you to the workspace, but if it’s easier for you just let me know. Thanks!
Marko Guzvic 2 things:
Julian Galluzzo I’ve just now seen this.
This works perfectly!! Loads in less than a second!
Please change the code in #24 so others can use it as well.
Awesome!! And I will Marko Guzvic
Hey guys. Is there some sort of memberscript that captures the url of the visitor in a webflow form?
Hey Table Talks undefined, I am aware that there is this memberscript which stores and pre-fills the form based on the URL parameters of the visitor, maybe you can tweak the code a bit depending on your requirement to solve your use-case.
Thanks for the response. Not much of a coder. Is there a place i can find a tweaked code to....
Hey Table Talks undefined, I am not sure if there is a ready-made resource available for this, however I have tweaked this memberscript to fit for your use-case.
You can clone this memberscript demo in your site and instead of pre-filling parameters, you can fill slug / URL as per your use-case.
To do this, instead of Invite code field as shown in the script tutorial, I have added 2 fields URL and Slug in the form and it has the attribute ms-code-prefill-param="url" and ms-code-prefill-param="slug" respectively so that I don't need to change the code much. Feel free to tweak the code or attributes if you want for your reference.
And then I have added this code instead of the whole memberscript in the Before </body> section of the page where I have the form setup.
Hey @AJ thanks for this response.. 🙏
Please sign in to leave a comment.