Skip to main content
added 32 characters in body
Source Link
Johannes Pille
  • 11.1k
  • 3
  • 42
  • 53

Ok, first of all, I know how to do this manually. I
I could just download easing, place it in my plugin folder and load it using wp_enqueue_scriptwp_enqueue_script. However, I want to load my script in a long-term way, ensuring that I use the same version of the easing script wordpress uses.

So what I am looking for, is a way to load easing in wordpress using wp_enqueue_scriptwp_enqueue_script, as seen below. I have looked at the function reference for wp_enqueue_scriptwp_enqueue_script, but I can't seem to find the right file/handle to enqueue. Is there anyone who knows how to load the wordpressWordPress-native easing script?

//I know this works because i'veI've used it a thousand times already
wp_enqueue_script("jquery");

//I want something like this without having to use my own script
wp_enqueue_script("jquery-easing");

Ok, first of all, I know how to do this. I could just download easing, place it in my plugin folder and load it using wp_enqueue_script. However, I want to load my script in a long-term way, ensuring that I use the same version of the easing script wordpress uses.

So what I am looking for, is a way to load easing in wordpress using wp_enqueue_script, as seen below. I have looked at the function reference for wp_enqueue_script, but I can't seem to find the right file to enqueue. Is there anyone who knows how to load the wordpress easing script?

//I know this works because i've used it a thousand times already
wp_enqueue_script("jquery");

//I want something like this without having to use my own script
wp_enqueue_script("jquery-easing");

Ok, first of all, I know how to do this manually.
I could just download easing, place it in my plugin folder and load it using wp_enqueue_script. However, I want to load my script in a long-term way, ensuring that I use the same version of the easing script wordpress uses.

So what I am looking for, is a way to load easing in wordpress using wp_enqueue_script, as seen below. I have looked at the function reference for wp_enqueue_script, but I can't seem to find the right file/handle to enqueue. Is there anyone who knows how to load the WordPress-native easing script?

//I know this works because I've used it a thousand times already
wp_enqueue_script("jquery");

//I want something like this without having to use my own script
wp_enqueue_script("jquery-easing");
Source Link

How to load JQuery easing script in wordpress?

Ok, first of all, I know how to do this. I could just download easing, place it in my plugin folder and load it using wp_enqueue_script. However, I want to load my script in a long-term way, ensuring that I use the same version of the easing script wordpress uses.

So what I am looking for, is a way to load easing in wordpress using wp_enqueue_script, as seen below. I have looked at the function reference for wp_enqueue_script, but I can't seem to find the right file to enqueue. Is there anyone who knows how to load the wordpress easing script?

//I know this works because i've used it a thousand times already
wp_enqueue_script("jquery");

//I want something like this without having to use my own script
wp_enqueue_script("jquery-easing");