enqueuing the assets in the header
-
Hi Nate,
I’m trying to use the plugin for a page I can load over an ajax loader (to get a fade effect). If doing so, the enqueued scripts for the picker and the message box are not loaded, only when I refresh the page. As far as I understood, this is due to the ajax loader. OK.
When I try to load the scripts for booking-form.js, picker.date.js, picker.js, picker.time.js and legacy.js in the header of my theme using ‘<script>’, the jQuery call in booking-form.js for the message box works after the ajax loader perfectly, but I have no chance to get the picker to function.
I understand that this question is not really support (since the plugin works fantastically without the ajax loader), but I saw in some previous support thread you helped somebody having trouble with Require JS. Unfortunately you finished the thread with “This was resolved over email by enqueuing the assets in the head instead of the footer”. This is pretty well what I’m trying to do.
Do I have any chance to get more details on how you solved this former enqueuing of the assets in the header?
Regards
Pierre
- The topic ‘enqueuing the assets in the header’ is closed to new replies.