If a design is truly responsive, it should not require javascript for doing so. The browser itself should be deciding layout policy.
Loading pixels can be used to allow cross-site communication, but that's not really what's under discussion here (and FWIW doesn't run afoul of the security model I expect from a browser)