Okay
  Public Ticket #1782957
Javascript error in wordpress
Closed

Comments

  • Bogdan started the conversation

    Something is blocking Javascript. This works in html, but once I use these files to create an addon, I see Javascript errors. Something's blocking it. 

    But what is the problem if ordinary html does not cause errors? What's wrong?
    1 Image - html

    2 image - error

    The whole section is based on the scrollintoview animation. And it is not reproduced
    ___________________

    It is necessary to Supplement this ticket. 

    If I click "preview" in the addon editing - everything is in order. The animation works and you can see it in the screenshot. 

    But when you add this addon in the editor and after the publication of the page, there is no animation

    I just don't understand what's going on.


  • Bogdan replied

    this1 - after publication

    this1 - preview in the editing-panel

  •   Max replied privately
  •   Bogdan replied privately
  •   Max replied privately
  • Bogdan replied

    Time to continue the conversation. 

    I was given a depressing answer. The <html> tag is really an indicator for Javascript. 

    It cannot be removed or reassigned to another tag (div, for example). 

    Of course, this is very bad, but I'm a little perplexed:

    In preview (full screen) this works. I take into account that there are two html tags on the page. And there is No JavaScript conflict. 

    When you add this addon in the blox and publish the site, there is a conflict and, accordingly, the animation does not work. 

    Are you sure this is because of the html tag? After all, under this condition, it should not work in the preview, is not it?


  •   Max replied privately
  •   Bogdan replied privately
  • Bogdan replied

    Don't ask me how I did it - I won't tell you. I managed to get rid of that tag. 

    Now the addon consists only of a section. But, as depressing as it sounds, the animation doesn't work. 

    In the preview (as before) - work, and when you add an addon - on via blox and publish the site-no.

    Guys, I assure you, now the problem is on the blox side. I don't understand why it doesn't work.

    I'm counting on your help.


    http://s90009lu.beget.tech/teete/

  •   Max replied privately
  •   Bogdan replied privately
  •   Bogdan replied privately
  • Bogdan replied

    Screen


  •   Max replied privately