Server response time

When I enable proxy on CNAME with “www” the server response time is high and when I disable the CNAME proxy the CDN error comes(JS,CSS)

Do you really need to use CNAME instead of A record?