SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Sep 2005
    Posts
    103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    preventing secondary "resource" http requests

    Hey Gang,

    Got a curious problem... I'm doing some data processing and I need to pull data out of html snippets. Works fine, but when I load in the html it's wanting to make a bunch of secondary http request for resource files, images, css, etc. which slowes the process down. My loads go from 40b to 350b.

    is there a way to prevent the browser, or jquery or javascript, or whatever is forcing the load of these assets to just knock it off?

    Thanks,
    Graffy

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,786
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Simply delete all the images, CSS, and javaScript out of the HTML so that it doesn't request them.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •