Optimize js and css enqueue hooks.