RebelMouse Talk to Us

Folder to put in a full JS file is static/js/roar/. If it doesn't exist yet, please create it.

Added JS files which are require ready you can access it with require directly like this

<script type="text/javascript">require(["/static/js/roar/ROAR_NAME/my_library.js"], function(myLib) {    // you can use 'myLib' variable inside here});</script>

If added JS file is not require ready, then you can load it with script src:

<script type="text/javascript" src="/static/js/roar/ROAR_NAME/my_library.js"></script>

Loading 3rd party JavaScript libraries

3rd party libraries normally have some instructions how and where to add them to the page. Some services want to be placed in the <head> with <link> tag, some of them want to be first thing in <body> tag or the last thing of <body> tag. In engine/base.html you can see base structure of the page with these basic tags. But be careful there, this file is used for dashboard as well. If you don't want to touch dashboard and still want to add something into <head> for other public pages, you can do it in engine/community/roar/base.html file. It has few

{% block something %}

parts of code and they overwrite the blocks which are defined in engine/base.html. Frontpage normally has its own base which is located engine/community/roar/base_frontpage.html.

Some other libraries don't care where they are. All you need to do is to place

<script type="text/javascript" src="url_to_3rd_party_library"></script>

somewhere in the code. Most of libraries work like this.


What libraries are already baked into RebelMouse?

  • ace
  • backbone
  • connector
  • hammer
  • highcharts
  • hogan
  • html5shiv
  • jquery
  • moment
  • polyfill
  • require
  • sprintf
  • underscore
  • videojs
  • wix
  • yepnope
  • zeroclipboard

You can use them (and we suggest you to) directly with require:

<script type="text/javascript">require(["jquery", "underscore", "moment"], function($, _, moment){    // code here});</script>
What Is RebelMouse?
Request a Proposal
Google Made Major Changes to Its Formula for Page Speed. Here’s What to Do About It in 2022.
Rebel Insights

Google Made Major Changes to Its Formula for Page Speed. Here’s What to Do About It in 2022.

Make sure your site is set up for success in 2022.

In the spring of 2020, Google let the world know that its Core Web Vitals would become the new benchmark for measuring a site's performance in its search results, known as the page experience update. Fast forward to more than a year later in August 2021 when, after much anticipation, Google's page experience update became official.

Since its rollout, developers have felt the impact of how their publishing platforms stack up against the new standard. Important decisions around the architecture of your site can now make or break your site's performance in the eyes of Google.

HTTP Archive, a tracking platform that crawls the web to identify trends and record historical patterns, has revealed how top content management systems (CMS) have weathered the page experience update through the creation of its Core Web Vitals Technology Report. RebelMouse consistently outperforms major CMS platforms on Google's most critical metrics since its rollout and into 2022:

Getting superior scores on Google's performance benchmarks isn't easy, either. The Ahrefs blog analyzed Core Web Vitals data from the Chrome User Experience Report (CrUX), which is data from actual Chrome users, to see how the web stacks up against Core Web Vitals. Their study found that only 33% of sites on the web are passing Core Web Vitals.

data from Ahrefs tracked on a line chart finds that shows only 33% of sites on the web pass Google's Core Web Vitals From Ahrefs.

Luckily, performing well on Core Web Vitals is possible with thoughtful, strategic changes to your site’s codebase. Here's what you need to know and how we can help.

Keep reading... Show less
subscription model for publishers
Content Strategy

In 2022, Publishers Take Back Control With Subscription Success

Users are ready to pay for content that delivers

The Rise of the Mature User

It's been a long and winding path, but in 2022 the subscription model continues its upward trajectory as a top revenue strategy for publishers of all sizes. The tug of war between platforms and publishers reached its peak in the last few years of the previous decade, leaving users desperate for a modern user experience that's clear of any clutter from the duopoly that is Google and Facebook. This is why intelligent paywall models are a top choice for users looking to consume content right from the source. When done correctly, the strategy can work for any type of media. The New York Times, a frequent showpiece example of the power of paywalls, is constantly reporting record-busting subscription numbers, with 7.6 million digital subscriptions in 2021.

And it all makes perfect sense. The subscription model eliminates the middleman — such as the platforms — so readers get the experience and content they want, and publishers get the cash they need.

Keep reading... Show less
Interested in a Free Website Health Check?Check Your
Website's Health
Get Your Free Analysis Now
INP and Core Web Vitals what you need to know
Rebel Insights

INP and Core Web Vitals: What You Need to Know

In this article:

What Are Core Web Vitals?

What Is INP?

Why INP Is More Challenging Than FID

How to Improve Your INP Score

INP Debugger

Front-End Solution

Get Ahead of the Rest of the Web

It’s been more than two years since Google let the world know that its Core Web Vitals metrics are the new benchmark for measuring a site's performance in its search results. Developers have since felt the impact of how their publishing platforms stack up against the new standard. Important decisions around the architecture of your site can now make or break your site's performance in the eyes of Google.

Now, the definition of what makes up Core Web Vitals could change. A new responsiveness metric called Interaction to Next Paint (INP) may replace First Input Delay (FID). During Google’s I/O conference in May 2022, it was announced that the INP metric was still in its experimental phase. You can watch the announcement here:

Keep reading... Show less
Sign Up for RebelMouse’s Free Website Health Check
Rebel Insights

Sign Up for RebelMouse’s Free Website Health Check

Most publishers are bogged down with day-to-day content strategy and creation, which usually means their technology suffers. That translates into poor search rankings, traffic dips, and loss of revenue.

Even so, the idea of replatforming to a new CMS, migrating your data, and overhauling your site’s architecture can sometimes feel more daunting than simply fixing the issues your website currently faces. But the stumbling block here is that most publishers aren’t even sure what the exact problems are with their current site.

That’s why RebelMouse offers a free website health check. This comprehensive audit will help you make a data-backed decision on what the best and most cost-effective next steps are to brighten your site’s future. Here’s what our health check includes:

Keep reading... Show less
Build on a Better PlatformReady to See More?
Request a Proposal