Wordpress

Website slow due to autoload yes – transient data in tables wordpress

When you call a remote server there is always some extra latency. Transients cache the response which comes through the remote API calls and is stored in the WordPress database. This saves API calls being made to the remote servers which helps in eaching API throttling limits. API call always has limit on how many …

Website slow due to autoload yes – transient data in tables wordpress Read More »

child theme

Basic array operations in Javascript

How to add elements at the start of an array in javascript? let list1 = [‘b’, ‘c’]; //using spread operator console.log([‘a’, …list1]); //Or using unshift method list1.unshift(‘a’); console.log(list1); How to add elements at the end of an array in javascript? let list2 = [‘a’, ‘b’]; //using spread operator console.log([…list2, ‘c’]); //or push method list2.push(‘c’); console.log(list2); …

Basic array operations in Javascript Read More »

What is async attribute in script tag in javascript?

What is async attribute in script tag in javascript? <script src=”test.js” async></script> If async attribute is present in script tag then script is executed asynchronously. async attribute is a Boolean attribute. What is the difference between async and defer? If async is present the file gets downloaded asynchronously and then executed as soon as it’s …

What is async attribute in script tag in javascript? Read More »

How to fix Briefly Unavailable for Scheduled Maintenance in WordPress?

Briefly Unavailable for Scheduled Maintenance error in WordPress This error comes when updating plugins, themes or wordpress. In this case wordpress started an upgrade but failed to complete it. The error displays like this. This is actually not an error. Its just wordpress has put website under maintenance until the upgarde finishes. WordPress creates .maintenance …

How to fix Briefly Unavailable for Scheduled Maintenance in WordPress? Read More »