• Hi, I’m relatively new to wordpress and I’m interested in developing with jQuery Mobile functions. Could someone tell me if it is included or how to include it correctly?

    I have directly tried adding in the template:

    <script src = "https://ajax.googleapis.com/ajax/libs/jquery/1.12.3/jquery.min.js"> </script>
         <script src = "https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.js"> </script>
         <link href = "https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.css" rel = "stylesheet" />
         <link href = "https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick-theme.min.css" rel = "stylesheet" />

    But this blocks the rendering, well I want to take care of that for this reason my query on how to correctly add jQuery Mobile in WordPress if it is not integrated. From already thank you very much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    From jquerymobile.com:

    jQuery Mobile is no longer supported
    To read more about the status of the jQuery Mobile project, see the announcement blog post.

    So I’d say no, it’s not included. For a complete list of pre-registered script files inspect $GLOBALS['wp_scripts'] in the admin UI. It’s poor practice to load jQuery core from an external source because it can conflict with the version already in use by WP. Best practice is to get scripts loaded via wp_enqueue_script(), where you can specify ['jquery'] as a dependency. For pre-registered scripts, you only need to enqueue by “handle”. Source and dependency args are not needed.
    https://developer.www.ads-software.com/reference/functions/wp_enqueue_script/

    Thread Starter ashop59

    (@ashop59)

    perfect, thank you very much!!!

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