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

Pbjs Utils: add getDomLoadingDuration() and remove dupe code #11831

Conversation

osazos
Copy link
Collaborator

@osazos osazos commented Jun 19, 2024

Type of change

  • Refactoring (no functional changes, no api changes)

Description of change

Remove the duplicated code in both adagioRtdProvider.js and bliinkBidAdapter.js by moving it in src/utils.js.

Other information

This PR is related to this comment #11772 (comment)

Copy link

Whoa there, partner! 🌵🤠 We wrangled some duplicated code in your PR:

Reducing code duplication by importing common functions from a library not only makes our code cleaner but also easier to maintain. Please move the common code from both files into a library and import it in each. Keep up the great work! 🚀

@patmmccann
Copy link
Collaborator

🎉

@patmmccann patmmccann self-assigned this Jun 19, 2024
@patmmccann
Copy link
Collaborator

Excellent work!

@patmmccann patmmccann merged commit 4fb10cd into prebid:master Jun 19, 2024
4 of 5 checks passed
@osazos osazos deleted the prebid/remove-getDomLoadingDuration-duplication branch June 21, 2024 12:02
DecayConstant pushed a commit to mediavine/Prebid.js that referenced this pull request Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants