There are edge cases where you may be justified inlining JavaScript and styles, but in most cases it should be avoided. Extract and move JavaScript and styles into external files.