Elementor JavaScript Primer

Published: 29 December 2021
on channel: WP Easy
206
2

How to add JavaScript which requires jQuery to an Elementor page

This is not a JavaScript Tutorial. It is an explanation of how I use JavaScript on Elementor pages. Some of the coding styles that I use and reasoning for the methods that I use.

In a nutshell:
1. I use HTML Widgets on a Page for my JavaScript
2. I use ES6 Syntax unless ES5 makes more sense
3. I use jQuery whenever I can
4. I always use a Closure
5. I always prefix constant and variables with $, if they are intended as a jQuery Object
6. I always initialise on the window 'load' event

I'll put some links in the description to ES6 and jQuery documentation.

ES6: https://www.makeuseof.com/tag/es6-jav...
jQuery: https://api.jquery.com/


On this page of the site you can watch the video online Elementor JavaScript Primer with a duration of hours minute second in good quality, which was uploaded by the user WP Easy 29 December 2021, share the link with friends and acquaintances, this video has already been watched 206 times on youtube and it was liked by 2 viewers. Enjoy your viewing!