Uncaught ReferenceError: moment is not defined

Support forumUncaught ReferenceError: moment is not defined
maciej Staff asked 6 years ago
Hi!  After updating to EA 2.3.5 I'm getting errors in the console like the ones below. The interesting thing is that it only happens upon the first visit to the reservations site. The reservation box is invisible on the first visit, but when you refresh the page, it shows up just fine. This is how it looks like, you can find a screenshot in the link below, and copied errors as well. Could you help me with this error?  Thank you in advance. Maciej   https://www.dropbox.com/s/x2odz8y1niry3g8/Zrzut%20ekranu%202018-08-01%2023.58.16.png?dl=0 Uncaught ReferenceError: moment is not defined
at Plugin.init (frontend-bootstrap.js?ver=4.9.7:33)
at new Plugin (frontend-bootstrap.js?ver=4.9.7:22)
at HTMLDivElement.<anonymous> (frontend-bootstrap.js?ver=4.9.7:1002)
at Function.each (jquery.js?ver=1.12.4:2)
at a.fn.init.each (jquery.js?ver=1.12.4:2)
at a.fn.init.jQuery.fn.(/rezerwacja-online/anonymous function) [as eaBootstrap] (https://anetarzodeczko.pl/wp-content/plugins/easy-appointments/js/frontend-bootstrap.js?ver=4.9.7:1000:14)
at frontend-bootstrap.js?ver=4.9.7:1012
at frontend-bootstrap.js?ver=4.9.7:1013
jquery-ui-i18n.min.js?ver=4.9.7:6 Uncaught TypeError: Cannot read property 'regional' of undefined
at jquery-ui-i18n.min.js?ver=4.9.7:6
at jquery-ui-i18n.min.js?ver=4.9.7:6
at jquery-ui-i18n.min.js?ver=4.9.7:6
3 Answers
Nikola Loncar Staff answered 6 years ago
Hi, if it's only on first visit then is most likely a caching issue. So that problem will not accure for others that never visited your site before. Do you have some kind of caching plugin? Best regards, Nikola
maciej Staff answered 6 years ago
Hi,  Yes, I have a caching plugin, LiteSpeed Cache, but I have excluded the reservation site from caching. I have also tried to switch it off, but the problem persisted. The thing is that errors are still there even after refreshing the page. It's a bit annoying that the reservation form is not showing upon the first visit, as most of the visits are from new users :( Kind regards 
Maciej
Nikola Loncar Staff answered 6 years ago
Hi Maciej, I have tried it with chrome and it was not loaded for the first time but on other hand on Safari everything was working. I am not sure maybe there is some kind of order loading issue :( Best regards, NIkola