Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: background.js

Issue 29345407: Issue 4090 - Make require() load modules lazily (Closed)
Patch Set: Created May 31, 2016, 11:37 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/compat.js » ('j') | lib/compat.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: background.js
===================================================================
--- a/background.js
+++ b/background.js
@@ -10,16 +10,22 @@
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
+// Make sure that the required modules get loaded
Sebastian Noack 2016/05/31 11:42:13 As you might have realized this file has shrinked
Wladimir Palant 2016/05/31 13:47:54 Ok, I've implemented it as an option in JSHydra. T
kzar 2016/05/31 14:54:08 The new approach makes sense to me, but the only t
+require("filterListener");
+require("synchronizer");
+require("notification");
+require("messageResponder");
+
var RegExpFilter = require("filterClasses").RegExpFilter;
var ElemHide = require("elemHide").ElemHide;
var checkWhitelisted = require("whitelisting").checkWhitelisted;
var extractHostFromFrame = require("url").extractHostFromFrame;
var port = require("messaging").port;
var devtools = require("devtools");
port.on("get-selectors", function(msg, sender)
« no previous file with comments | « no previous file | lib/compat.js » ('j') | lib/compat.js » ('J')

Powered by Google App Engine
This is Rietveld