Skip to content

Commit

Permalink
chore/PPEC-55: Remove Optimizely from topic head (newsuk#2323)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobenna authored and aronshamash committed Oct 16, 2019
1 parent 5f3795a commit bb8d813
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@
exports[`1. an article list loading 1`] = `
<topicArticlesProvider>
<Helmet>
<link
as="script"
href="/assets/optimizely/16079460199.js"
rel="preload"
/>
<script
src="/assets/optimizely/16079460199.js"
/>
<title>
| The Times & The Sunday Times
Expand Down
32 changes: 0 additions & 32 deletions packages/topic/__tests__/web/__snapshots__/topic.web.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,6 @@ exports[`1. an error page 1`] = `<ArticleListPageError />`;
exports[`2. a loading state 1`] = `
<topicArticlesProvider>
<Helmet>
<link
as="script"
href="/assets/optimizely/16079460199.js"
rel="preload"
/>
<script
src="/assets/optimizely/16079460199.js"
/>
<title>
| The Times & The Sunday Times
Expand Down Expand Up @@ -55,14 +47,6 @@ exports[`2. a loading state 1`] = `
exports[`3. an article list 1`] = `
<topicArticlesProvider>
<Helmet>
<link
as="script"
href="/assets/optimizely/16079460199.js"
rel="preload"
/>
<script
src="/assets/optimizely/16079460199.js"
/>
<title>
Test Name
| The Times & The Sunday Times
Expand Down Expand Up @@ -149,14 +133,6 @@ exports[`3. an article list 1`] = `
exports[`4. fetches more articles 1`] = `
<topicArticlesProvider>
<Helmet>
<link
as="script"
href="/assets/optimizely/16079460199.js"
rel="preload"
/>
<script
src="/assets/optimizely/16079460199.js"
/>
<title>
Test Name
| The Times & The Sunday Times
Expand Down Expand Up @@ -248,14 +224,6 @@ exports[`4. fetches more articles 1`] = `
exports[`5. fetches more articles and falls back to previous data if no more 1`] = `
<topicArticlesProvider>
<Helmet>
<link
as="script"
href="/assets/optimizely/16079460199.js"
rel="preload"
/>
<script
src="/assets/optimizely/16079460199.js"
/>
<title>
Test Name
| The Times & The Sunday Times
Expand Down
10 changes: 0 additions & 10 deletions packages/topic/src/head.web.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,6 @@ function Head({ description, name, slug }) {
<Context.Consumer>
{({ makeTopicUrl }) => (
<Helmet>
{/**
@todo: Remove this script tag and the corresponding proxy in Akamai
after the PoC is done.
*/}
<link
as="script"
href="/assets/optimizely/16079460199.js"
rel="preload"
/>
<script src="/assets/optimizely/16079460199.js" />
<title>{name} | The Times &amp; The Sunday Times</title>
<meta content={content} name="description" />
<link href={makeTopicUrl({ slug })} rel="canonical" />
Expand Down

0 comments on commit bb8d813

Please sign in to comment.