Monthly Archives: January 2019
Does Bluehost Suck?
As a web hosting company, many have expressed the opinion that Bluehost stinks:
- The Worst Web Host: Bluehost Sucks
- Why I will no longer use Bluehost as My WordPress Web Host
- Why Bloggers should Avoid Bluehost at All Costs
- Bluehost Sucks: Here’s How to Transfer Your Site to Siteground in Four Easy Steps
- Bluehost Sucks (not to be confused with …)
- Bluehost Sucks!!
- Sitelock Scam
I signed up for Bluehost 2½ years ago for a 3 year subscription at the rock bottom price of about $3.00 per month, paid in advance. I suspect they pack their servers with hundreds of websites and mine can really slow to a crawl. But, for someone who wants to learn about web development and has no plans to make money at it, the price cannot be beat.
I rarely need any support from Bluehost, but my site was recently hit by a malware attack. I now have something to say on the subject of: Does Bluehost suck?
Continue readingRemove Hyperlink Warning in Outlook
The shortcut navigation pane in Outlook allows shortcuts to folders on the local computer. By default, however, Outlook displays an annoying security warning dialog box when the link is clicked. This article explains the registry settings needed to disable the dialog.
Enqueue Scripts with ‘defer’ or ‘async’ attribute
First, add a filter for the script loader tag:
add_filter( 'script_loader_tag', array( $this, 'add_defer_attr' ), 10, 2 );
Then, enqueue the script, noting its WordPress handle (in this case ‘hotMessScripts’):
wp_enqueue_script(
'hotMessScripts',
plugin_dir_url( __FILE__ ) . 'js/hotMessAdmin.js',
array('jquery', 'jquery-ui-sortable', 'jquery-ui-dialog')
);
Then, identifying the script’s handle, alter the script’s tag by inserting the desired ‘defer’ or ‘async’ attribute before the ‘src’ attribute:
/* Add defer attribute to hotMessAdmin.js script tag */
public function add_defer_attr( $tag, $handle ){
if( $handle == 'hotMessScripts' ){
return str_replace( ' src', ' defer="defer" src', $tag );
} else {
return $tag;
}
}
Remember, all script tags will run through this filter. The unaltered tag must still be returned even for the scripts tags that should not be changed, thus the else clause is important.