Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Definitive way to use jQuery and your own scripts with WordPress

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #45933
    Ricky55
    Member

    I thought this was going to relatively easy to answer but there seems like theres so many conflicting reports as to which is the best way to firstly use jQuery and then your own scripts afterwards.

    Chris has a version on this website, then I’ve been on stack overflow and they seem to recommend that you use the version that comes with WordPress.

    So my questions are:

    A. Which is the best method?

    Should I use the code that Chris lists on this page?

    [CSS Tricks Code…](https://css-tricks.com/snippets/wordpress/include-jquery-in-wordpress-theme/ “CSS Tricks Code”)

    B. Is it better to use the version that comes with WP even though its an older version?

    C. Normally you would load just before close of body but for the case of plugins is it best to load in the head?

    D. Using any of these methods you still get the old script tags can this be changed so you just use the HTML5 version without text/javascript?

    E. Whats the best way of using my own script once I have jQuery working?

    Thanks

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.