This simply won't work.
domain.com sends you an HTML, which is empty. The HTML defined a <style> tag which your browser will fetch from cdn.com. Do you want to block it? Cool, no CSS for you.
It also defined a <script> tag which your browser will fetch the React library from cdn.com. Do you want to block it? Cool, no content for you.
The whole page is just one <div id="root"></div>.