Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prebid 6 legacy code deploy example #3362

Merged
merged 7 commits into from
Nov 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions _data/sidebar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,14 @@
sectionTitle:
subgroup: 1

- sbSecId: 1
title: Legacy Browser Example
link: /dev-docs/examples/legacy-browser-example.html
isHeader: 0
isSectionHeader: 0
sectionTitle:
subgroup: 1

- sbSecId: 1
title: Using Prebid.js with AppNexus Publisher Ad Server
link: /dev-docs/examples/use-prebid-with-appnexus-ad-server.html
Expand Down
19 changes: 19 additions & 0 deletions dev-docs/examples/legacy-browser-example.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
layout: example
title: Legacy Browser Support
description: Legacy Browser Support

sidebarType: 1

about:
- In Prebid 6.0, support for legacy browsers is no longer assured.
- Publishers may conditionally deploy the 5.x branch and add polyfills
- One strategy to do this is simply the module/nomodule approach discussed here https://philipwalton.com/articles/deploying-es2015-code-in-production-today/
- Another strategy is to detect the user agent or the 'currentScript' mechanism as described here https://stackoverflow.com/questions/29987969/how-to-load-a-script-only-in-ie
- Another strategy is to conditionally serve one file or another based on instructions to your cdn

jsfiddle_link: jsfiddle.net/Prebid_Examples/kqe8L2jf/embedded/html,result

code_height: 3050

---