mathiasbynens / mathiasbynens/jsperf.com

AngularJS templates are removed from page.

Open
#97 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
471
Forks
53
PR merge metrics
No merged PRs in 30d

Description

When an AngularJS template is included in the page the entire script block for it is removed from the page and jsperf uses the id of that script block to attempt to load the template from the jsperf.com site.

For example:

<script type="text/ng-template" id="someTemplate">
 <div></div>
</script>

will result in the block being removed and an attempt to load http://jsperf.com/someTemplate.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the code that processes script blocks and constructs the jsperf.com URL, then reproduce the issue with the provided text/ng-template example. Done means AngularJS template blocks remain in the page and are not treated as external template URLs.

Written by the indexing model from the issue text.

Assessment

Tech stack
angularjs, javascript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.