How to implement a JavaScript and CSS file for my WordPress homepage?

You would enqueue it, this is how Javascript is added to WordPress properly. This function would typically go in your theme’s functions.php or in a plugin. function my_scripts_intro() { is_front_page(){ wp_enqueue_script( ‘introjs’,’path to ..intro.js’ ); wp_enqueue_style( ‘introcss’,’path to ..intro.css’ ); } } add_action( ‘wp_enqueue_scripts’, ‘my_scripts_intro’ ); To determine the state of the visitor you would … Read more

Adding define(‘WP_MEMORY_LIMIT’, ’64M’); by default?

The short answer is no. The long answer is “it is complicated”. The memory limit is there to protect you from malfunctioning code eating all your available memory, something that will make your site less responsive for a while. (I tried to explain the issues around this setting here) This setting will not matter if … Read more