[bisq-network/bisq-website] Separate javascript into page-specific files and remove unused code (#381)

m52go notifications at github.com
Thu Jul 30 16:18:14 UTC 2020


I wanted to add an anchor link to the front page, but FAQ page JavaScript was getting in the way. 

As it turned out, JavaScript code for the home and FAQ pages was being loaded for _every_ page. This also made load times unnecessarily slower for other pages.

This PR puts JavaScript for the home page in a separate home.js file that is only loaded when the home page is loaded. Likewise for the FAQ page.

Additionally, it removes lingering code from when Google Analytics was used.
You can view, comment on, or merge this pull request online at:

  https://github.com/bisq-network/bisq-website/pull/381

-- Commit Summary --

  * Remove remnants of google analytics
  * Break scripts.js into separate js files

-- File Changes --

    M _layouts/default.html (1)
    M _layouts/page_faq.html (3)
    M _layouts/page_home.html (2)
    A js/faq.js (56)
    R js/home.js (71)

-- Patch Links --

https://github.com/bisq-network/bisq-website/pull/381.patch
https://github.com/bisq-network/bisq-website/pull/381.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq-website/pull/381
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20200730/f8782622/attachment.html>


More information about the bisq-github mailing list