Per the codex, you should now use wp_enqueue_scripts instead. This was posted in the support forum (https://wordpress.org/support/topic/fix-for-plugin-2/). I've tested and it fixes the problem.