Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A jQuery plugin to include remote html within a custom html <include> tag

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 example
Octocat-spinner-32 README.md
Octocat-spinner-32 jquery.include.js
README.md

jQuery plugin include-html

This is not a fancy plugin to load remote (remote domain) html or anything complex. It loads VERY simple HTML files that are accessible on your webserver.

Do not rely on this if you want good SEO. It will kill your SEO

This jQuery plugin is there to help developers including remote HTML elements into their web pages.

Using the plugin a developer will be able to either create an HTML file and include within a page.

This works like templating engines that allow you to include a file. In PHP this would be <?php include(...); ?>, and in other languages it'd be another way of including a remote template/html source within a file.

This plugin introduces a new non-self-closing html tag called <include>

How to use it?

First of all, the developer will need to include the plugin like such (Obviously after inserting the jquery source ;-))

Include the plugin in your code

<script src="jquery.include.js" charset="utf-8" type="text/javascript"></script>

Then where you want to include your remote html, you'll need to use the following html tag.

<include src="/path/to/file/to/include.html"></include>

Please note, this is not a self-closing tag. It is primordial to close it.

Hope you enjoy.

Something went wrong with that request. Please try again.