An inline adaptation system is described herein that selectively and dynamically transforms a web page before resource fetching and page rendering is complete. The system can run in the web visitor's browser in near real-time and at the same resource Uniform Resource Locator (URL) as the desktop site. All, some, or none of the original content from the page may be used during this transformation. The system's approach is selective (i.e., conditionally applied) and prevents rendering of the page before transformation is complete. The system can prevent unwanted external resources from being loaded by the mobile browser and the application of templates on the client-side using a data query engine that allows the origin website to be treated as an Application Programming Interface (API). Thus, the inline adaptation system allows an optimized viewing experience on a variety of platforms without unnecessary effort by web page designers.
展开▼