• Resolved wmati

    (@wmati)


    I want to use Java script in wordpress, not jQuery. Using the $ is a short cut to jQuery. jQuery is too slow for on-page-load functions.

    Many, many conversions on this, confuse jQuery with javascript (jquery a kind a short hand of javascript, deriving from a javascript library) the same language but different and jquery is slow.

    I’ve used shortcut $ to, and jQuery in wordpress, both have delay on page load functions.

    This is my understanding. Is it possible to use JAVA SCRIPT in wordpress.

    I may otherwise have to look at options like GSAP (for it’s speed), if that is compatible with wordpress?

    Hope someone can shed light on this. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Is it possible to use JAVA SCRIPT in wordpress.

    Of course it is. I’m guessing that you’re talking about the front-end of your site? If that’s the case it’s very simple. Just wp_enqueue_script() your JavaScript file and don’t list jQuery as a requirement. That way the system won’t load the jQuery library file, and you’ll still be able to use any JavaScript code that you want to.

    Thread Starter wmati

    (@wmati)

    Thank you for quick response. Yes, front end. wp_enqueue_script() + not listing jQuery was in place. The java script worked outside of wp and not within wp. I have to figure this out.

    At least I know that Java Script should work in wp, without jQuery.

    Cheers.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Javascript not jQuery in wordpress’ is closed to new replies.