[wp-trac] [WordPress Trac] #36995: Support for Service Workers

WordPress Trac noreply at wordpress.org
Mon Mar 18 18:51:25 UTC 2019


#36995: Support for Service Workers
-------------------------+-------------------------------------------------
 Reporter:  bhubbard     |       Owner:  westonruter
     Type:  feature      |      Status:  accepted
  request                |
 Priority:  normal       |   Milestone:  Future Release
Component:  General      |     Version:  5.1
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:  javascript, administration,
                         |  performance
-------------------------+-------------------------------------------------

Comment (by collimarco):

 Any plans to merge this on master branch? Until it remains a plugin it is
 useless.

 The problem is that there are **too many plugins that attempt to serve as
 a general solution for service workers** and **everyone uses a different
 strategy** to register service workers. IMHO **the only solution is to add
 an official hook to Wordpress core** that allows plugins to add their code
 to the service worker.

 For example some days ago we had a customer who were using these two
 plugins:
 https://wordpress.org/plugins/pushpad-web-push-notifications/
 https://wordpress.org/plugins/super-progressive-web-apps/

 They are incompatible because each one tries to register a different
 service worker for the root scope.

 An official hook would definitely solve this kind of conflicts.

 I agree that one service worker for frontend and one for the admin is
 enough.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/36995#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list