Measuring and Mitigating Potential Risks of Third-party Resource Inclusions