Script (Donation) is shown via desktop/chrome but not on desktop/firefox , etc

Hello,

we use a script to show an donation form (see Secure Note) … We included the script via Pro edit in an Content area

On desktop/chrome we can see the donation form, on desktop/firefox you do not see it … also the donation form is missing on iPhone/Safari … we use the Pro Version …

Thanks for helping, A.

Hi there,

Please try adding the code in a Raw Content element instead of a Content area element.

Let us know how it goes.

1 Like

If I use the Raw Content element it seems to work fully on desktop/mobile , different browsers , etc.

but now: in terms of page speed / performance the GTmetrix rate drops from

PageSpeed Score A / YSlow Score B >>> to B/C

that is really strange , why the Content area do not works for Raw content? … are other ways to include the script?

Best, A.

Hi There,

Some scripts works in content area too. Its completely depends on the type of script you are using.
For that reason only, the editor having a raw content module which works with all type of Script and HTML code.

Hope this is clear!

thanks

Hi @basanta ,

not really clear , understand that it depends on the script to work within raw content element or the content area element , fine! But as we can see here, the script works half way inside content area element and the GTmetrix reports are better as now in the raw content element area where the scripts works well on the other side.

So what can I do to get the same better GTmetrix results/values or can you point me in some direction?

Thanks for helping, A.

I’m sorry but I’m not sure what you’re trying to achieve. Can you provide more details and screenshots?

Thanks.

Hello @christian_y ,

Scenario A)
If I use the raw content element the donation script is now working on desktop/mobile browser without any problems.

Scenario B)
Before I used the content area element and the donation script was only visible in desktop chrome but not on mobile iPhone/Safari or desktop Firefox.

Hope until now everything is clear. So now what I do not understand is the following:
In Scenario A) I get now lower GTmetrix values, See here: https://d.pr/i/h6kKX1
In Scenario B) I get nearly perfect GTmetrix values, See here: https://d.pr/i/5Wjexq

So I only want to know if I can do something that a) the donation script is fully working and b) that my performance values are remain the same?

Maybe the issues is script related and before with Scenario B) the script is not completely or fully loaded (curious because it shows up on desktop/Chrome) and the better values are related to something else?

Thanks for helping, A.

Hi there,

It’s simply because of the javascript code, if the scripts are not deferred then it will have the lower score. And since the raw content completely display the script as is, then it displayed the actual script that has issues with gmetrix. Try removing the script and the score will be greater.

The issue itself that affects the score is your added script, it’s just that in content element, the script is not completely added but of course, not fully working.

Thanks!

1 Like

Hello ,

thanks for your feedback.

Best, A.

You are most welcome!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.