Built in javascript setTimeout.
setTimeout( function() { //do something special }, 5000);
UPDATE: you want to wait since when the page has finished loading, so put that code inside your $(document).ready(...);
script.
UPDATE 2: jquery 1.4.0 introduced the .delay
method. Check it out. Note that .delay only works with the jQuery effects queues.
Related Posts:
- jQuery equivalent of JavaScript’s addEventListener method
- What is content-type and datatype in an AJAX request?
- When and why to ‘return false’ in JavaScript?
- Download File Using jQuery
- How is JavaScript .on() method defined?
- correct way of comparing string jquery operator =
- JQuery: $.get is not a function
- Bootstrap carousel not sliding
- Jquery to change form action
- How can I expand and collapse a using javascript?
- Detecting value change of input[type=text] in jQuery
- Javascript : array.length returns undefined
- Comparing dates in jquery
- jQuery – checkbox enable/disable
- How can I correctly format currency using jquery?
- How do I send this form's output to a new WordPress page?
- Annoying “JQMIGRATE: Migrate is…” in console after update to WordPress 4.5
- Update jquery version
- Correct Method to run scripts with dependencies without enqueue?
- Can’t get a JSON object in response to an Ajax request with wp_ajax
- How to prevent wordpress from loading old versions of jquery in wp_head();?
- Using the WordPress Media Library and returning the Attachment ID rather than URL?
- WP set auth cookie using Ajax is not saved to browser
- Modify Custom Field in Media Library using JavaScript
- Loading jQuery With Two Fallbacks
- Moving jQuery to the footer without using de-register in WordPress
- ajax call in wordpress front end
- Including jQuery in WordPress
- Comment form vaildation
- Enqueuing jQuery in plug-ins
- Script doesn’t load because of a javascript MIME type error
- TinyMCE – TypeError: r is undefined
- Auto-detect javascript errors and warn theme user
- combining js scripts from a js newb [closed]
- Heartbeat API: How to access data already enqueued?
- Implementing lazy loading in homepage posts instead of pagination
- Jquery integration with my theme
- How to stop focus() in custom js from scrolling to footer?
- Is it possible to hide media details sidebar when wp.media popup is being opened?
- Getting post meta in the flex slider
- Format numeric symbols in titles
- Removing jQuery from footer
- How can I make this custom menu work?
- Remove WordPress scripts
- Use jQuery to conditionally hide elements in Quick Edit
- AJAX Loaded Glossary like Search results with links to other entries from custom table
- Using bootstrap-slider and bootstrap-switch in wordpress admin panel
- WordPress jquery files not being enqueued
- what’s the best way to add a class to the div with a class of post every 4 seconds using jquery? [closed]
- Why Won’t my jQuery Play Nice with WordPress?
- Unexpected script loading order
- Problem passing id-specific objects to javascript via wp_localize_script
- I am trying to modify a plugin and am adding Jquery, but it does not seem to be executing
- Creating a new div onclick wordpress+ajax
- Uncaught ReferenceError: jQuery is not defined . How do I define it correctly?
- Close Fancybox, sumbit form data and redirect
- Showing All the Posts in the Loop
- How to enque js script in footer that are not in .js file?
- Properly embed javascript into WP (using function.php) – doesn’t work?
- jQuery tabs plugin with callback to fetch data
- jQuery is not defined [closed]
- Cherry Framework theme, JQuery is using HTTP not HTTPS
- Custom AJAX form not working async
- Is there a default way in wordpress to create a overlay in the dashboard?
- enqueue jQuery into the footer
- Jquery not working
- Making jQuery-based galleries with WordPress without a plugin?
- JS behavior differs depending on page tree [closed]
- Long contextual help needs two clicks to close
- Query String Link With Anchor Tag Not Working on Same Page
- jQuery Datepicker displays wrong language until interection with the calendar
- jQuery for Fade Preload Causes My Site Favicon to Disappear from Tab of Browser
- Bootstrap Carousel Slider – CSS & JS not working
- How to pull data from a table using wpdb?
- Is not using admin-ajax to ajax submissions okay?
- Unable to remove jquery from header and put in before body ends
- Visual editor popover or placeholder
- Masonry – Can’t Find Variable imagesLoaded
- Custom button on admin page doesn’t trigger click event
- Target WooCommerce submit button
- jQuery infinite scroll and pagination styling in wordpress
- Is it necessary to use a WordPress nonce when allowing users to download public data?
- How to update scrollbar when using Jetpack’s Inifnite Scroller?
- Clear custom field when new tag is added
- Jquery is not working in wordpress php file
- wp_signon not working fine and 302 moved temporarily?
- jQuery form plugin, submit in the wordpress way
- How jQuery Works in WordPress [duplicate]
- Getting “ReferenceError: jQuery is not defined” – don’t know why!
- Can’t get jQuery to enqueue into post edit script
- CF7 Add a read only attribute to an input field
- Contact Form 7 checkbox to add a new class to a div [closed]
- Infinite Scroll applied to ajax loaded content
- using jquery autocomplete in wordpress plugin
- Make this jQuery toggle snippet target each list item individually [closed]
- Why is jQuery not working properly? [closed]
- How to Javascript/jQuery
- Fire an event after Featured Image selection
- Elementor form – checkboxes validation
- How to add input file plain text and submit to publish?