Tips For Front End Frameworks

If your front end framework uses Web Components (either by Shadow or Virtual DOM), you can put the code in the root HTML file of the complete app. Don't add it to a component because their code is encapsulated and loaded when your JavaScript files load, which they might not :D

I have used the code in an Angular 10 application, you can use it with any thing from React.js to Vue.js.

There are more ways for different adblockers, if this doesn't work for you and you figure out which adblock plugin is blocking what on your page, do leave a comment below and I'll update this Lab!

Hope this helps!

Arpan Garg

Arpan Garg

Organizer, GDG New Delhi

Organizer @ GDG New Delhi Creativy, Code, Cars Building Commudle to be the world's largest

A star would make my day!

All Labs


🏆 Completed!

More Labs

Be the first one to comment!