Wordpress

How to create multiple browsers using laravel dusk?

Run below srtisan command to generate the test class file Now you can run this test with below artisan command If you get error – Error: Call to undefined function Tests\Browser\factory()the run below command to include the legacy factory

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 »