{"id":1047,"date":"2012-10-07T17:00:21","date_gmt":"2012-10-08T00:00:21","guid":{"rendered":"http:\/\/www.virendrachandak.com\/techtalk\/\/?p=1047"},"modified":"2019-03-01T12:10:36","modified_gmt":"2019-03-01T20:10:36","slug":"wordpress-is-not-defined-even-if-jquery-is-loaded","status":"publish","type":"post","link":"https:\/\/www.virendrachandak.com\/techtalk\/wordpress-is-not-defined-even-if-jquery-is-loaded\/","title":{"rendered":"WordPress $ is not defined even if jQuery is loaded"},"content":{"rendered":"<p>Many times while using WordPress, if we try to use &#8220;$&#8221; to access jQuery, we get an error the &#8220;$ is not defined&#8221;. This happens because the jQuery library which is included in WordPress loads in &#8220;no conflict&#8221; mode. In the no conflict mode jQuery returns the control of &#8220;$&#8221;, and it is no longer accessible as function, variable or alias for jQuery. WordPress does this in order to prevent compatibility problems with other JavaScript libraries that can be loaded.<\/p>\n<p><!--more--><\/p>\n<p>To solve this we can use &#8220;jQuery&#8221; instead of &#8220;$&#8221;. So, instead of using the standard code with &#8220;$&#8221;<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n$(document).ready(function(){\r\n     $(#selector) ...\r\n});\r\n<\/pre>\n<p>we can use the following code, which uses &#8220;jQuery&#8221; instead of &#8220;$&#8221;<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\njQuery(document).ready(function(){\r\n     jQuery(#selector) ...\r\n});\r\n<\/pre>\n<p>If you want to use the default &#8220;$&#8221; symbol, it can be done by wrapping the code within a function<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n(function($) {\r\n    \/\/ You can use $() inside of this function\r\n    $(#selector) ...\r\n})(jQuery);\r\n<\/pre>\n<p>If you want to execute the jQuery code on document ready you can use the following instead of the above code:<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\njQuery(document).ready(function($) {\r\n    \/\/ You can use $() inside of this function\r\n    $(#selector) ...\r\n});\r\n<\/pre>\n<div style=\"padding-top: 30px;\">\n<p><strong>Related Articles<\/strong>:<\/p>\n<ul>\n<li><a title=\"jQuery noConflict wrappers\" href=\"http:\/\/codex.wordpress.org\/Function_Reference\/wp_enqueue_script#jQuery_noConflict_wrappers\" rel=\"external nofollow noopener noreferrer\" target=\"_blank\">jQuery noConflict wrappers<\/a><\/li>\n<li><a title=\"Using jQuery with Other Libraries\" href=\"http:\/\/docs.jquery.com\/Using_jQuery_with_Other_Libraries\" rel=\"external nofollow noopener noreferrer\" target=\"_blank\">Using jQuery with Other Libraries<\/a><\/li>\n<li><a title=\"jQuery.noConflict()\" href=\"http:\/\/api.jquery.com\/jQuery.noConflict\/\" rel=\"external nofollow noopener noreferrer\" target=\"_blank\">jQuery.noConflict()<\/a><\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Many times while using WordPress, if we try to use &#8220;$&#8221; to access jQuery, we get an error the &#8220;$ is not defined&#8221;. This happens because the jQuery library which is included in WordPress loads in &#8220;no conflict&#8221; mode. In the no conflict mode jQuery returns the control of &#8220;$&#8221;, and it is no longer [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[145,91],"tags":[],"class_list":["post-1047","post","type-post","status-publish","format-standard","hentry","category-jquery","category-wordpress"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>WordPress $ is not defined even if jQuery is loaded - Virendra&#039;s TechTalk<\/title>\n<meta name=\"description\" content=\"Why do we get wordpress jquery is not defined error even when jQuery is loaded and ways to fix it\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.virendrachandak.com\/techtalk\/wordpress-is-not-defined-even-if-jquery-is-loaded\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WordPress $ is not defined even if jQuery is loaded - Virendra&#039;s TechTalk\" \/>\n<meta property=\"og:description\" content=\"Why do we get wordpress jquery is not defined error even when jQuery is loaded and ways to fix it\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.virendrachandak.com\/techtalk\/wordpress-is-not-defined-even-if-jquery-is-loaded\/\" \/>\n<meta property=\"og:site_name\" content=\"Virendra&#039;s TechTalk\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/virendrachandak\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/virendrachandak\" \/>\n<meta property=\"article:published_time\" content=\"2012-10-08T00:00:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-03-01T20:10:36+00:00\" \/>\n<meta name=\"author\" content=\"Virendra Chandak\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@virendrachandak\" \/>\n<meta name=\"twitter:site\" content=\"@virendrachandak\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Virendra Chandak\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/wordpress-is-not-defined-even-if-jquery-is-loaded\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/wordpress-is-not-defined-even-if-jquery-is-loaded\\\/\"},\"author\":{\"name\":\"Virendra Chandak\",\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/#\\\/schema\\\/person\\\/63f7ffa1ea125e32af9618d188349e17\"},\"headline\":\"WordPress $ is not defined even if jQuery is loaded\",\"datePublished\":\"2012-10-08T00:00:21+00:00\",\"dateModified\":\"2019-03-01T20:10:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/wordpress-is-not-defined-even-if-jquery-is-loaded\\\/\"},\"wordCount\":214,\"commentCount\":5,\"publisher\":{\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/#\\\/schema\\\/person\\\/63f7ffa1ea125e32af9618d188349e17\"},\"articleSection\":[\"jQuery\",\"WordPress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/wordpress-is-not-defined-even-if-jquery-is-loaded\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/wordpress-is-not-defined-even-if-jquery-is-loaded\\\/\",\"url\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/wordpress-is-not-defined-even-if-jquery-is-loaded\\\/\",\"name\":\"WordPress $ is not defined even if jQuery is loaded - Virendra's TechTalk\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/#website\"},\"datePublished\":\"2012-10-08T00:00:21+00:00\",\"dateModified\":\"2019-03-01T20:10:36+00:00\",\"description\":\"Why do we get wordpress jquery is not defined error even when jQuery is loaded and ways to fix it\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/wordpress-is-not-defined-even-if-jquery-is-loaded\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/wordpress-is-not-defined-even-if-jquery-is-loaded\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/wordpress-is-not-defined-even-if-jquery-is-loaded\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"TechTalk\",\"item\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"jQuery\",\"item\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/category\\\/jquery\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"WordPress $ is not defined even if jQuery is loaded\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/#website\",\"url\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/\",\"name\":\"Virendra's TechTalk\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/#\\\/schema\\\/person\\\/63f7ffa1ea125e32af9618d188349e17\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/#\\\/schema\\\/person\\\/63f7ffa1ea125e32af9618d188349e17\",\"name\":\"Virendra Chandak\",\"logo\":{\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/#\\\/schema\\\/person\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.virendrachandak.com\",\"https:\\\/\\\/www.facebook.com\\\/virendrachandak\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/virendrachandak\\\/\",\"https:\\\/\\\/x.com\\\/virendrachandak\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"WordPress $ is not defined even if jQuery is loaded - Virendra's TechTalk","description":"Why do we get wordpress jquery is not defined error even when jQuery is loaded and ways to fix it","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.virendrachandak.com\/techtalk\/wordpress-is-not-defined-even-if-jquery-is-loaded\/","og_locale":"en_US","og_type":"article","og_title":"WordPress $ is not defined even if jQuery is loaded - Virendra's TechTalk","og_description":"Why do we get wordpress jquery is not defined error even when jQuery is loaded and ways to fix it","og_url":"https:\/\/www.virendrachandak.com\/techtalk\/wordpress-is-not-defined-even-if-jquery-is-loaded\/","og_site_name":"Virendra&#039;s TechTalk","article_publisher":"https:\/\/www.facebook.com\/virendrachandak","article_author":"https:\/\/www.facebook.com\/virendrachandak","article_published_time":"2012-10-08T00:00:21+00:00","article_modified_time":"2019-03-01T20:10:36+00:00","author":"Virendra Chandak","twitter_card":"summary_large_image","twitter_creator":"@virendrachandak","twitter_site":"@virendrachandak","twitter_misc":{"Written by":"Virendra Chandak","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.virendrachandak.com\/techtalk\/wordpress-is-not-defined-even-if-jquery-is-loaded\/#article","isPartOf":{"@id":"https:\/\/www.virendrachandak.com\/techtalk\/wordpress-is-not-defined-even-if-jquery-is-loaded\/"},"author":{"name":"Virendra Chandak","@id":"https:\/\/www.virendrachandak.com\/techtalk\/#\/schema\/person\/63f7ffa1ea125e32af9618d188349e17"},"headline":"WordPress $ is not defined even if jQuery is loaded","datePublished":"2012-10-08T00:00:21+00:00","dateModified":"2019-03-01T20:10:36+00:00","mainEntityOfPage":{"@id":"https:\/\/www.virendrachandak.com\/techtalk\/wordpress-is-not-defined-even-if-jquery-is-loaded\/"},"wordCount":214,"commentCount":5,"publisher":{"@id":"https:\/\/www.virendrachandak.com\/techtalk\/#\/schema\/person\/63f7ffa1ea125e32af9618d188349e17"},"articleSection":["jQuery","WordPress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.virendrachandak.com\/techtalk\/wordpress-is-not-defined-even-if-jquery-is-loaded\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.virendrachandak.com\/techtalk\/wordpress-is-not-defined-even-if-jquery-is-loaded\/","url":"https:\/\/www.virendrachandak.com\/techtalk\/wordpress-is-not-defined-even-if-jquery-is-loaded\/","name":"WordPress $ is not defined even if jQuery is loaded - Virendra's TechTalk","isPartOf":{"@id":"https:\/\/www.virendrachandak.com\/techtalk\/#website"},"datePublished":"2012-10-08T00:00:21+00:00","dateModified":"2019-03-01T20:10:36+00:00","description":"Why do we get wordpress jquery is not defined error even when jQuery is loaded and ways to fix it","breadcrumb":{"@id":"https:\/\/www.virendrachandak.com\/techtalk\/wordpress-is-not-defined-even-if-jquery-is-loaded\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.virendrachandak.com\/techtalk\/wordpress-is-not-defined-even-if-jquery-is-loaded\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.virendrachandak.com\/techtalk\/wordpress-is-not-defined-even-if-jquery-is-loaded\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"TechTalk","item":"https:\/\/www.virendrachandak.com\/techtalk\/"},{"@type":"ListItem","position":2,"name":"jQuery","item":"https:\/\/www.virendrachandak.com\/techtalk\/category\/jquery\/"},{"@type":"ListItem","position":3,"name":"WordPress $ is not defined even if jQuery is loaded"}]},{"@type":"WebSite","@id":"https:\/\/www.virendrachandak.com\/techtalk\/#website","url":"https:\/\/www.virendrachandak.com\/techtalk\/","name":"Virendra's TechTalk","description":"","publisher":{"@id":"https:\/\/www.virendrachandak.com\/techtalk\/#\/schema\/person\/63f7ffa1ea125e32af9618d188349e17"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.virendrachandak.com\/techtalk\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.virendrachandak.com\/techtalk\/#\/schema\/person\/63f7ffa1ea125e32af9618d188349e17","name":"Virendra Chandak","logo":{"@id":"https:\/\/www.virendrachandak.com\/techtalk\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/www.virendrachandak.com","https:\/\/www.facebook.com\/virendrachandak","https:\/\/www.linkedin.com\/in\/virendrachandak\/","https:\/\/x.com\/virendrachandak"]}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2vTtQ-gT","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":802,"url":"https:\/\/www.virendrachandak.com\/techtalk\/voting-functionality-in-a-website\/","url_meta":{"origin":1047,"position":0},"title":"Voting Functionality in a website","author":"Virendra Chandak","date":"April 10, 2011","format":false,"excerpt":"In this post I will give the step by step explanation of how we can add Voting Functionality to a website. At the end of this article we will have a working sample voting application. The source code for the sample voting application can be downloaded from here. We will\u2026","rel":"","context":"In &quot;Functionality&quot;","block_context":{"text":"Functionality","link":"https:\/\/www.virendrachandak.com\/techtalk\/category\/functionality\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virendrachandak.com\/techtalk\/wp-content\/uploads\/2011\/10\/initial.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":2287,"url":"https:\/\/www.virendrachandak.com\/techtalk\/async-vs-defer\/","url_meta":{"origin":1047,"position":1},"title":"How to remove render blocking JavaScript with defer and async","author":"Virendra Chandak","date":"January 14, 2019","format":false,"excerpt":"With HTML5 there are 2 new boolean attributes for <script> tag which indicates to the browser how the script should be evaluated. The 2 attributes are defer and async. Using these attributes can help improve the page load time by downloading the script in parallel when the page is being\u2026","rel":"","context":"In &quot;JavaScript&quot;","block_context":{"text":"JavaScript","link":"https:\/\/www.virendrachandak.com\/techtalk\/category\/javascript\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":631,"url":"https:\/\/www.virendrachandak.com\/techtalk\/make-a-div-stick-to-top-when-scrolled-to\/","url_meta":{"origin":1047,"position":2},"title":"Make a div stick to top when scrolled to","author":"Virendra Chandak","date":"January 1, 2012","format":false,"excerpt":"There are times when you would want to display a bar at the top of the page when user scrolls on the page and it should go back to its original position when the user scrolls back up. This is particularly useful when you want to add say a share\u2026","rel":"","context":"In &quot;Functionality&quot;","block_context":{"text":"Functionality","link":"https:\/\/www.virendrachandak.com\/techtalk\/category\/functionality\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1023,"url":"https:\/\/www.virendrachandak.com\/techtalk\/protocol-relative-urls\/","url_meta":{"origin":1047,"position":3},"title":"Protocol relative URLs","author":"Virendra Chandak","date":"October 7, 2014","format":false,"excerpt":"Many times we have seen warnings similar to \"This page contains both secure and nonsecure items\" or \"This page has insecure content.\". This happens when we are viewing a HTTPS site and some content on the site is loaded from HTTP. So when we try to view a site say\u2026","rel":"","context":"In &quot;Web Development&quot;","block_context":{"text":"Web Development","link":"https:\/\/www.virendrachandak.com\/techtalk\/category\/web-development\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":157,"url":"https:\/\/www.virendrachandak.com\/techtalk\/cachebuster-code-in-javascript\/","url_meta":{"origin":1047,"position":4},"title":"Cachebuster code in JavaScript","author":"Virendra Chandak","date":"September 25, 2011","format":false,"excerpt":"The JavaScript, CSS and other files used in a website are often cached by the browser. Sometimes we might want the browser to always fetch the file from the server instead of from the cache. To do this we can use a cachebuster code to make the browser think that\u2026","rel":"","context":"In &quot;JavaScript&quot;","block_context":{"text":"JavaScript","link":"https:\/\/www.virendrachandak.com\/techtalk\/category\/javascript\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":117,"url":"https:\/\/www.virendrachandak.com\/techtalk\/optimizing-websites\/","url_meta":{"origin":1047,"position":5},"title":"Optimizing \/ Speeding up websites","author":"Virendra Chandak","date":"April 14, 2011","format":false,"excerpt":"In this article I will list a few things that can be done to speed up website. I will give just brief description on each topic and give links to find more details on those topics. I have used tools like Google's Page Speed, YSlow, Audits Tab in Chrome\u00a0Developer\u00a0Tools. 1.\u2026","rel":"","context":"In &quot;Optimization Tips&quot;","block_context":{"text":"Optimization Tips","link":"https:\/\/www.virendrachandak.com\/techtalk\/category\/optimization-tips\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/posts\/1047","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/comments?post=1047"}],"version-history":[{"count":0,"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/posts\/1047\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/media?parent=1047"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/categories?post=1047"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/tags?post=1047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}