Bell_Internet page: address bar in top banner does not load (JavaScript error)

vasigorc
Contributor

Page: https://www.bell.ca/Bell_Internet
Browser: Chrome 155, Linux

Problem: The "Enter your address" bar in the top banner does not appear. I cannot check availability from it.

Console errors on page load:

  • "ReferenceError: pca is not defined" at "new InlineQualification" (bundles.js)
  • "TypeError: Failed to execute 'observe' on 'MutationObserver': parameter 1 is not of type 'Node'" (bundles.js)
  • "SyntaxError: Unexpected end of input" (inline script in the page, around line 7504)

Likely cause: The Network tab shows that the Canada Post AddressComplete script (addresscomplete-2.30.min.js) starts to load about 1 second after DOMContentLoaded. The address bar code seems to need the "pca" object from that script before the script is ready.

Workaround: The "enter your address" link under "Featured Internet plans" opens a Check availability pop-up. That pop-up works.

Can you please pass this to the web team?

0 2 25
2 REPLIES 2

BellPatricia
Moderator

Good evening @vasigorc 

Welcome to the Bell community and thank you for flagging this to us 🙂

We would just like to gather a few more details that could help us investigate further.

  • Does the same issue occur in another browser?
  • Can you reproduce this consistently, or does it happen intermittently?
  • Has this issue been happening for a while, or did it start today?
  • Are you able to test on another device?

Looking forward to your reply,

@BellPatricia 

vasigorc
Contributor

Thanks, Patricia.

Other browser: I tested only on Chrome, Version 155.0.8059.84 (Official Build) (x86_64). I will not test other browsers. Chrome is the most used browser in Canada (about 49% of all traffic, 58% on desktop, per Statcounter). Cross-browser testing is work for your development team.

Consistent or intermittent: Consistent. The error occurs on every page load.

Since when: I first saw it on November 18.

Other device: I will not test on another device.

This is not a browser problem. It is a load-order problem in the page code: the address bar code runs before the Canada Post script loads. The console errors in my first post show this. Please send them to the web team.