Enqueued Resources

Scripts must be registered/enqueued via wp_enqueue_script().

Valid: Script registered and enqueued correctly.

<em>wp_enqueue_script</em>( 'someScript-js', $path_to_file, array( 'jquery' ), '1.0.0', true );

Invalid: Script is directly embedded in HTML.

printf( '<em><script src="%s"></script></em>', esc_url( $path_to_file ) );
Stylesheets must be registered/enqueued via wp_enqueue_style().

Valid: Stylesheet registered and enqueued correctly.

<em>wp_enqueue_style</em>( 'style-name', $path_to_file, array(), '1.0.0' );

Invalid: Stylesheet is directly embedded in HTML.

printf( '<em><link rel="stylesheet" href="%s" /></em>', esc_url( $path_to_file ) );