Is best practice also unnecessary practice ?
-
To enqueue styles and scripts in themes.
WP-Codex recommend register style (or script ) then enqueue it.
But when I read tutorials from really respectable developers or looking inside good themes, they seems to skip the register_ step.Do I really need to register stuff first ? Because it works fine without it. It is not going to kill me to add a bunch of lines to functions file, but why bother?
I have a theme now with 10 scripts ( they all load conditionally ) registering them it is 14 lines more.
- The topic ‘Is best practice also unnecessary practice ?’ is closed to new replies.