Nothing for introduction, hehe! A very small snippet which will help you to defer parsing all javascript files except jquery in wordpress. Here is the code: https://gist.github.com/bappi-d-great/2a67ff307db672d4566b You can add those codes in your functions.php in the theme, if you think your theme won’t be changed. Otherwise mu-plugins is the best solution. To use mu-plugins,… Continue reading Defer parsing of javascript to improve performance in wordpress
Category: JavaScript
How to get start date of a week in JavaScript
This is little tricky to get the start date or/and end date of a week. Also, there is no standard day that should be a REAL start day in a week. In my example, I assume that the start day is Monday. Also, I will show you how you can adjust it to fit your… Continue reading How to get start date of a week in JavaScript
Redirect to another page when back button is pressed in JavaScript
One of the most wanted feature now-a-days is to detect browser back button. Couple of years ago there were lots of script to detect browser’s back button, but browsers are getting smarter day by day, and so are we Sometimes we need to redirect into a different page when user press browser back button. So,… Continue reading Redirect to another page when back button is pressed in JavaScript