Strange character before </body> closing tag

Hello Frontity team,

There is one “w” character on ruthgeorgiev.com before the </body> closing tag which i can’t find it neither in my code, nor on the page source lookup. Do you thing that this might be rendered from some dependencies or any other html? (see screenshot)

Here the repo: https://github.com/dejangeorgiev/ruthgeorgiev-frontity

Thanks for helping out.
Dejan

Have you fixed it? I’m not seeing that extra “w.”

As a side-note, you should consider removing “.env” from your GH repo. You can use git rm .env to remove it from your current commit, and you can use the following two resources to remove it from your GH history as well.

https://docs.github.com/en/github/managing-large-files/removing-files-from-a-repositorys-history#removing-a-file-that-was-added-in-an-earlier-commit
https://docs.github.com/en/github/authenticating-to-github/removing-sensitive-data-from-a-repository

1 Like

Thanks a lot for the side-note @Arepo, appreciate it!
Btw, very strange, i haven’t fixed the issue and still can see the “w” character on the left side on the bottom of the page. :thinking:

That’s very weird. I don’t see it on Firefox, Brave, or Safari. Typically, an extra character like that is indicative of incomplete HTML tags. Given that I don’t see it, there may be something about your local configuration that is causing this. I would try it on a few different browsers and see if that produces a different result. All the same, it’s unlikely this extra character will cause any issues for you.

Best of luck!

Yes, that’s really weird. I can see it on Safari on my MacBook as well on mobile. Really weird :frowning:

Okay, so, given that, I think I might have discovered something. It shows up on my mobile as well, but not on my desktop. The only difference is that I’ve got ad blockers and privacy configurations on my desktop, so your Google scripts are being blocked.

I imagine your analytics has something to do with it. I’m not sure why, but that’s the only thing I can think of.

Perhaps you may be interested in this privacy-respecting alternative to GA: https://ackee.electerious.com

Hi @dejangeorgiev thanks for posting this question!

Took a look at what’s happening and here’s what I’ve found out.

  1. The ol’ view-source
    While viewing your website without any JavaScript and straight on with view-source protocol, that 'w" char is not there. So it must be something added via JavaScript.

  2. Turned off 3rd party scripts.
    In my experience, the 3rd party scripts are usually the “culprit” :smiley: for amending the DOM. So that’s what I did, took out the Google Tag Manager manager. Either by blocking the request to it or remove it from your frontity.settings.js packages. And that did it! The nasty “w” it’s not there anymore.

Conclusion
It’s the GTM script. Some script injected via GTM is adding that “w”.

Post conclusion
I really really personally love your website :smiley:! Looks amazing! Kudos! :tada:

2 Likes

Hi @cristianbote :wave:

Thank you very much for your investigation and help, appreciate it a lot!
Indeed, there was a script in GTM which rendered this “w”. Now is fixed. :+1:t2:

Also, thank you so much for your kind words of encouragement! I must say, the website looks better after my wife filled it with some nice foodie pictures. :smiley: However, thanks to you & all amazing people behind Frontity, without your great framework, support and community i couldn’t develop it. :raised_hands:t2:

Wish you a lovely day.

1 Like

:raised_hands: awesome to hear that!

Thank you for your kind words! :smiley:

Wishing you a lovely day as well!

2 Likes