I thought I had read it was possible to use wp_enqueue_script()
and wp_dequeue_script()
directly in individual template files. However, when I add
wp_dequeue_script( 'myscript' );
to the top of page.php, myscript
still gets loaded.
Is it possible to do what I'm trying to do?