Skip to content

Conversation

@psdwebdesigns
Copy link

I created this function because I believe it will really help all Bigcommerce developers to reduce the DOM size in code. Using this function, developers can only show DOM what they wanted to show in specific screen.

It will also help in improving the page speed.


cc @bigcommerce/storefront-team

@jairo-bc
Copy link
Contributor

Hi @psdwebdesigns, navigator and window are both frontend (browser) objects, while our handlebars engine instance is running purely on backend. In this case you will get ReferenceError: navigator is not defined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants